Skip to content

Commit 000dc4e

Browse files
committed
Merge pull request #20205 from tshepang/patch-4
doc: remove repeated info Reviewed-by: steveklabnik
2 parents 3772ce5 + 0eafc32 commit 000dc4e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/doc/guide.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1604,10 +1604,6 @@ let a = [1i, 2i, 3i]; // a: [int, ..3]
16041604
let mut m = [1i, 2i, 3i]; // mut m: [int, ..3]
16051605
```
16061606

1607-
You can create an array with a given number of elements, all initialized to the
1608-
same value, with `[val, ..N]` syntax. The compiler ensures that arrays are
1609-
always initialized.
1610-
16111607
There's a shorthand for initializing each element of an array to the same
16121608
value. In this example, each element of `a` will be initialized to `0i`:
16131609

0 commit comments

Comments
 (0)