Skip to content

Commit ec52b11

Browse files
authored
Rollup merge of rust-lang#34625 - jaredmanning:patch-1, r=apasel422
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. 😀
2 parents ce91cd0 + 5dfd79a commit ec52b11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/loops.md

+1-1
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)