From afa905fcf59580ac76b3e3677b5d9c82b4a19169 Mon Sep 17 00:00:00 2001 From: christopherdumas Date: Wed, 2 Sep 2015 15:48:21 -0700 Subject: Fix tuple float bug. --- src/libsyntax/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse/parser.rs') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 0772d124db8..265f435978c 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2363,7 +2363,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(); -- cgit 1.4.1-3-g733a5