Skip to content

Commit

Permalink
Mention array sugar in guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Sep 25, 2014
1 parent 3f8da69 commit 1f4cd80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/doc/guide.md
Expand Up @@ -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
Expand Down

1 comment on commit 1f4cd80

@steveklabnik
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+

Please sign in to comment.