Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cc45132

Browse files
committedMay 30, 2014
auto merge of #14547 : reem/rust/remove-owned-vec-docs, r=alexcrichton
The last example in the containers and iterators guide had a superfluous owned vector in it. Everything works fine without it, so I removed it to avoid confusion.
2 parents 7e461ea + 3dace35 commit cc45132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/doc/guide-container.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ underlying iterators are.
396396

397397
~~~
398398
let xs = [1, 2, 3, 4, 5];
399-
let ys = ~[7, 9, 11];
399+
let ys = [7, 9, 11];
400400
let mut it = xs.iter().chain(ys.iter());
401401
println!("{}", it.idx(0)); // prints `Some(1)`
402402
println!("{}", it.idx(5)); // prints `Some(7)`

0 commit comments

Comments
 (0)
Please sign in to comment.