diff options
| author | Marvin Löbel <loebel.marvin@gmail.com> | 2015-02-19 14:36:58 +0100 |
|---|---|---|
| committer | Marvin Löbel <loebel.marvin@gmail.com> | 2015-02-20 00:58:15 +0100 |
| commit | c8dd2d066d7b25246d2b940b7c161b8b67608b74 (patch) | |
| tree | 7b6c4fecc16df3ccfc388d16b46011be49a864ba /src/libsyntax/parse/parser.rs | |
| parent | a641996796f0ab11021671c0ce70a3c975bb4e37 (diff) | |
| download | rust-c8dd2d066d7b25246d2b940b7c161b8b67608b74.tar.gz rust-c8dd2d066d7b25246d2b940b7c161b8b67608b74.zip | |
Addressed PR comments
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 370201e5382..eb5688b3ed8 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2496,7 +2496,7 @@ impl<'a> Parser<'a> { let fstr = n.as_str(); self.span_err(last_span, &format!("unexpected token: `{}`", n.as_str())); - if fstr.chars().all(|x| "0123456789.".contains_char(x)) { + if fstr.chars().all(|x| "0123456789.".contains(x)) { let float = match fstr.parse::<f64>().ok() { Some(f) => f, None => continue, |
