1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

doc: fix default field values example (#7847)

This commit is contained in:
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

View File

@ -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
}
```