doc: fix array init (#5801)
parent
ae349ca6ba
commit
839bd0e150
|
@ -2038,7 +2038,7 @@ Run `v translate test.cpp` and V will generate `test.v`:
|
||||||
|
|
||||||
```v
|
```v
|
||||||
fn main {
|
fn main {
|
||||||
mut s := []
|
mut s := []string{}
|
||||||
s << 'V is '
|
s << 'V is '
|
||||||
s << 'awesome'
|
s << 'awesome'
|
||||||
println(s.len)
|
println(s.len)
|
||||||
|
|
Loading…
Reference in New Issue