Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Mention array sugar in guide
  • 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

5 comments on commit 1f4cd80

@bors
Copy link
Contributor

@bors bors commented on 1f4cd80 Sep 29, 2014

Choose a reason for hiding this comment

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

saw approval from steveklabnik
at Manishearth@1f4cd80

@bors
Copy link
Contributor

@bors bors commented on 1f4cd80 Sep 29, 2014

Choose a reason for hiding this comment

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

merging Manishearth/rust/patch-2 = 1f4cd80 into auto

@bors
Copy link
Contributor

@bors bors commented on 1f4cd80 Sep 29, 2014

Choose a reason for hiding this comment

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

Manishearth/rust/patch-2 = 1f4cd80 merged ok, testing candidate = eb816ee

@bors
Copy link
Contributor

@bors bors commented on 1f4cd80 Sep 29, 2014

Choose a reason for hiding this comment

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

@bors
Copy link
Contributor

@bors bors commented on 1f4cd80 Sep 29, 2014

Choose a reason for hiding this comment

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

fast-forwarding master to auto = eb816ee

Please sign in to comment.