From dce201928a6fd1c4f34e750750ce23b627550fa7 Mon Sep 17 00:00:00 2001 From: Don Alfons Nisnoni Date: Mon, 4 Jan 2021 05:54:13 +0800 Subject: [PATCH] doc: fix default field values example (#7847) --- doc/docs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/docs.md b/doc/docs.md index 4e4ffbd46a..b9f5b81fe5 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -1253,9 +1253,9 @@ button.widget.x = 3 ```v struct Foo { - n int // n is 0 by default + n int // n is 0 by default s string // s is '' by default - a []int // a is `[]int{}` by default + a []int // a is `[]int{}` by default pos int = -1 // custom default value } ```