Fix tuple float bug.

This commit is contained in:
christopherdumas 2015-09-02 15:48:21 -07:00
parent b7b1dced3c
commit afa905fcf5
2 changed files with 17 additions and 1 deletions

View file

@ -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();