doc: fix array init (#5801)

pull/5806/head
Swastik Baranwal 2020-07-11 19:07:55 +05:30 committed by GitHub
parent ae349ca6ba
commit 839bd0e150
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2038,7 +2038,7 @@ Run `v translate test.cpp` and V will generate `test.v`:
```v
fn main {
mut s := []
mut s := []string{}
s << 'V is '
s << 'awesome'
println(s.len)