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:
parent
9b43b6833b
commit
dce201928a
@ -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
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user