Skip to content

Commit

Permalink
doc: remove repeated info
Browse files Browse the repository at this point in the history
  • Loading branch information
tshepang committed Dec 24, 2014
1 parent 29ad853 commit 0eafc32
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/doc/guide.md
Expand Up @@ -1604,10 +1604,6 @@ let a = [1i, 2i, 3i]; // a: [int, ..3]
let mut m = [1i, 2i, 3i]; // mut m: [int, ..3]
```

You can create an array with a given number of elements, all initialized to the
same value, with `[val, ..N]` syntax. The compiler ensures that arrays are
always initialized.

There's a shorthand for initializing each element of an array to the same
value. In this example, each element of `a` will be initialized to `0i`:

Expand Down

0 comments on commit 0eafc32

Please sign in to comment.