Skip to content

Commit 5dfd79a

Browse files
author
Jared Manning
authored
Fix spacing in for loop enumeration example
Add a space between the comma and j in (i, j) to make it look nice.
1 parent ecbfa47 commit 5dfd79a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/loops.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ When you need to keep track of how many times you already looped, you can use th
105105
#### On ranges:
106106

107107
```rust
108-
for (i,j) in (5..10).enumerate() {
108+
for (i, j) in (5..10).enumerate() {
109109
println!("i = {} and j = {}", i, j);
110110
}
111111
```

0 commit comments

Comments
 (0)