From 1f4cd80ac57275342348c7c922b6594451495689 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Fri, 26 Sep 2014 00:00:04 +0530 Subject: [PATCH] Mention array sugar in guide --- src/doc/guide.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/doc/guide.md b/src/doc/guide.md index 6a27cf2f1ef..6abb6c22c01 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -1507,6 +1507,7 @@ You can create an array with just square brackets: ```{rust} let nums = [1i, 2i, 3i]; +let nums = [1i, ..20]; // Shorthand for an array of 20 elements all initialized to 1 ``` So what's the difference? An array has a fixed size, so you can't add or