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.
This commit is contained in:
bors 2014-05-30 16:01:35 -07:00
commit cc4513202d
1 changed files with 1 additions and 1 deletions

View File

@ -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)`