doc: change 0u32..10 to 0..10
This commit is contained in:
parent
199bdcfeff
commit
dac552f255
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ We now loop forever with `loop` and use `break` to break out early.
|
|||
iteration. This will only print the odd numbers:
|
||||
|
||||
```{rust}
|
||||
for x in 0u32..10 {
|
||||
for x in 0..10 {
|
||||
if x % 2 == 0 { continue; }
|
||||
|
||||
println!("{}", x);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue