mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
doc: fix wrong syntax
This commit is contained in:
@ -223,8 +223,8 @@ Format specifiers similar to those in C's `printf()` are supported, too. `f`, `g
|
|||||||
and specify the output format. The compiler takes care of the storage size, so there is no `hd` or `llu`.
|
and specify the output format. The compiler takes care of the storage size, so there is no `hd` or `llu`.
|
||||||
|
|
||||||
```v
|
```v
|
||||||
println('x = ${x:12.3f}'`
|
println('x = ${x:12.3f}')
|
||||||
println('${item:-20} ${n:20d})
|
println('${item:-20} ${n:20d}')
|
||||||
```
|
```
|
||||||
|
|
||||||
All operators in V must have values of the same type on both sides. This code will not compile if `age` is an `int`:
|
All operators in V must have values of the same type on both sides. This code will not compile if `age` is an `int`:
|
||||||
|
Reference in New Issue
Block a user