mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
doc: document fixed size init syntax
This commit is contained in:
parent
c16bb7f3e4
commit
b3890e28f2
@ -813,6 +813,8 @@ fnums[2] = 100
|
||||
println(fnums) // => [1, 10, 100]
|
||||
println(typeof(fnums).name) // => [3]int
|
||||
|
||||
fnums2 := [1, 10, 100]! // short init syntax that does the same (the syntax will probably change)
|
||||
|
||||
anums := fnums[0..fnums.len]
|
||||
println(anums) // => [1, 10, 100]
|
||||
println(typeof(anums).name) // => []int
|
||||
|
Loading…
Reference in New Issue
Block a user