From 24aff9e511fd30a3032dd9bb4d3a700164baf771 Mon Sep 17 00:00:00 2001 From: ytakahashi Date: Wed, 6 May 2020 09:56:46 +0900 Subject: [PATCH] doc: fix wrong syntax --- doc/docs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/docs.md b/doc/docs.md index 598e2f11ba..2b811a51b9 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -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`: