diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-03-27 10:07:47 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-27 10:07:47 -0700 |
| commit | 5f9fd2ea27da8e4cec46b8c946a8be65337419bf (patch) | |
| tree | 3c438479c65e0f60939a8a205ea796396cb5f8b3 | |
| parent | df49ea6a837ddf72e61b46bed5ea9d61fa3b78ff (diff) | |
| parent | dac552f2551d3406d02712d134f74d1175035bbb (diff) | |
| download | rust-5f9fd2ea27da8e4cec46b8c946a8be65337419bf.tar.gz rust-5f9fd2ea27da8e4cec46b8c946a8be65337419bf.zip | |
rollup merge of #23745: oneeman/trpl-looping
Was reading the 'Looping' section of the book and was puzzled why the last example uses `0u32..10` when the others don't. Tried it out without and it seems to work, so I figured it should just be `0..10`. If there is a reason it needs to be `0u32..10` it should be explained in the text (I'd offer to do it but I have no idea). r? @steveklabnik
| -rw-r--r-- | src/doc/trpl/looping.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/trpl/looping.md b/src/doc/trpl/looping.md index 4301149d1f8..28f02b1ffe1 100644 --- a/src/doc/trpl/looping.md +++ b/src/doc/trpl/looping.md @@ -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); |
