Skip to content

Commit 25e89ef

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 ef4e9b2 + 5dfd79a commit 25e89ef

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)