doc: fix default field values example (#7847)

pull/7853/head
Don Alfons Nisnoni 2021-01-04 05:54:13 +08:00 committed by GitHub
parent 9b43b6833b
commit dce201928a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1253,9 +1253,9 @@ button.widget.x = 3
```v ```v
struct Foo { struct Foo {
n int // n is 0 by default n int // n is 0 by default
s string // s is '' 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 pos int = -1 // custom default value
} }
``` ```