diff options
| author | Jonathan Reem <jonathan.reem@gmail.com> | 2014-05-30 12:18:52 -0700 |
|---|---|---|
| committer | Jonathan Reem <jonathan.reem@gmail.com> | 2014-05-30 12:18:52 -0700 |
| commit | 3dace3504480df37d261da2ef3ac753f5ac811ee (patch) | |
| tree | f0ccf216a55c8453afa8faad5d2f7208b012e9fb | |
| parent | 729ee203387cc3a3f7387cffd018aba93b0110e6 (diff) | |
| download | rust-3dace3504480df37d261da2ef3ac753f5ac811ee.tar.gz rust-3dace3504480df37d261da2ef3ac753f5ac811ee.zip | |
Remove deprecated owned vector from iterator example.
| -rw-r--r-- | src/doc/guide-container.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/guide-container.md b/src/doc/guide-container.md index 30bfd28d57e..cca8cd7a84a 100644 --- a/src/doc/guide-container.md +++ b/src/doc/guide-container.md @@ -396,7 +396,7 @@ underlying iterators are. ~~~ let xs = [1, 2, 3, 4, 5]; -let ys = ~[7, 9, 11]; +let ys = [7, 9, 11]; let mut it = xs.iter().chain(ys.iter()); println!("{}", it.idx(0)); // prints `Some(1)` println!("{}", it.idx(5)); // prints `Some(7)` |
