doc: document fixed size init syntax

pull/9944/head
Alexander Medvednikov 2021-04-30 15:59:38 +03:00 committed by GitHub
parent c16bb7f3e4
commit b3890e28f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

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