Rollup merge of #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 #34624. 😀
This commit is contained in:
commit
80e5672f7e
@ -105,7 +105,7 @@ When you need to keep track of how many times you already looped, you can use th
|
|||||||
#### On ranges:
|
#### On ranges:
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
for (i,j) in (5..10).enumerate() {
|
for (i, j) in (5..10).enumerate() {
|
||||||
println!("i = {} and j = {}", i, j);
|
println!("i = {} and j = {}", i, j);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user