diff options
| author | bors <bors@rust-lang.org> | 2013-10-02 02:31:29 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-10-02 02:31:29 -0700 |
| commit | d00c9269dce3a7925d7d0bf5edb64b3c6747c6af (patch) | |
| tree | 2446c316e34164e1b0795fb909de8951d503fe20 /src/libsyntax/parse/lexer.rs | |
| parent | 97cd495aca946d088e103d364d3be34f2bfaf1e1 (diff) | |
| parent | 4f67dcb24adb1e23f04e624fcbaf2328b82491b6 (diff) | |
| download | rust-d00c9269dce3a7925d7d0bf5edb64b3c6747c6af.tar.gz rust-d00c9269dce3a7925d7d0bf5edb64b3c6747c6af.zip | |
auto merge of #9665 : alexcrichton/rust/snapshot, r=brson
Uses the new snapshots to kill the old `loop` and introduce the new `continue`.
Diffstat (limited to 'src/libsyntax/parse/lexer.rs')
| -rw-r--r-- | src/libsyntax/parse/lexer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/lexer.rs b/src/libsyntax/parse/lexer.rs index 4a384f864b0..79c330c4737 100644 --- a/src/libsyntax/parse/lexer.rs +++ b/src/libsyntax/parse/lexer.rs @@ -431,7 +431,7 @@ fn scan_digits(rdr: @mut StringReader, radix: uint) -> ~str { let mut rslt = ~""; loop { let c = rdr.curr; - if c == '_' { bump(rdr); loop; } + if c == '_' { bump(rdr); continue; } match char::to_digit(c, radix) { Some(_) => { rslt.push_char(c); |
