From b3890e28f24338f5eb4abd9d8e65a5c42586ccde Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 30 Apr 2021 15:59:38 +0300 Subject: [PATCH] doc: document fixed size init syntax --- doc/docs.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/docs.md b/doc/docs.md index 907e301fa3..4c7a777f37 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -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