Make adjancent code examples more similar
This commit is contained in:
parent
19cb2a7707
commit
06706510cb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue