diff options
| author | bors <bors@rust-lang.org> | 2015-09-14 20:37:49 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-09-14 20:37:49 +0000 |
| commit | bc6c3970a072ced531f39eaa918084acd43c785a (patch) | |
| tree | 7f8018ae112a2dec1217cec782392dc1bc02a982 /src/libsyntax/parse | |
| parent | 22071ec6417948e156cbac2dc23d18c3dfaebbd7 (diff) | |
| parent | afa905fcf59580ac76b3e3677b5d9c82b4a19169 (diff) | |
| download | rust-bc6c3970a072ced531f39eaa918084acd43c785a.tar.gz rust-bc6c3970a072ced531f39eaa918084acd43c785a.zip | |
Auto merge of #28247 - christopherdumas:fix_28243, r=eddyb
as per #28243.
Diffstat (limited to 'src/libsyntax/parse')
| -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 2308787bf67..ff622859cf0 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2365,7 +2365,7 @@ impl<'a> Parser<'a> { self.fileline_help(last_span, &format!("try parenthesizing the first index; e.g., `(foo.{}){}`", float.trunc() as usize, - &float.fract().to_string()[1..])); + format!(".{}", fstr.splitn(2, ".").last().unwrap()))); } self.abort_if_errors(); |
