Skip to content

Commit

Permalink
Rollup merge of rust-lang#34625 - jaredmanning:patch-1, r=apasel422
Browse files Browse the repository at this point in the history
Fix spacing in for loop enumeration example

Add a space between the comma and j in (i, j) to make it look nice.

This addresses my recent issue rust-lang#34624.

πŸ˜€
  • Loading branch information
steveklabnik authored Jul 5, 2016
2 parents 9566aaf + 5dfd79a commit ecd8b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/book/loops.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ When you need to keep track of how many times you already looped, you can use th
#### On ranges:

```rust
for (i,j) in (5..10).enumerate() {
for (i, j) in (5..10).enumerate() {
println!("i = {} and j = {}", i, j);
}
```
Expand Down

0 comments on commit ecd8b48

Please sign in to comment.