doc: fix wrong syntax

pull/4744/head
ytakahashi 2020-05-06 09:56:46 +09:00 committed by GitHub
parent 67351c74c8
commit 24aff9e511
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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`.
```v
println('x = ${x:12.3f}'`
println('${item:-20} ${n:20d})
println('x = ${x:12.3f}')
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`: