Skip to content

Commit

Permalink
Merge pull request #1178 from sebadoh/patch-1
Browse files Browse the repository at this point in the history
19.2 Vectors Error in Code Example
  • Loading branch information
marioidival committed Apr 22, 2019
2 parents 904280f + d29dd5e commit d7c5489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/std/vec.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ be surpassed, the vector is reallocated with a larger capacity.
```rust,editable,ignore,mdbook-runnable
fn main() {
// Iterators can be collected into vectors
let collected_iterator: Vec<i32> = (0..10).collect();
let mut collected_iterator: Vec<i32> = (0..10).collect();
println!("Collected (0..10) into: {:?}", collected_iterator);
// The `vec!` macro can be used to initialize a vector
Expand Down

0 comments on commit d7c5489

Please sign in to comment.