Make adjancent code examples more similar

This commit is contained in:
Corey Farwell 2015-02-21 10:53:42 -05:00 committed by Johannes Oertel
parent 19cb2a7707
commit 06706510cb
1 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ conditional expression.
Prefer
```rust
s.iter().map(|x| x * 2)
.collect::<Vec<_>>()
let v = s.iter().map(|x| x * 2)
.collect::<Vec<_>>();
```
over