Auto merge of #28247 - christopherdumas:fix_28243, r=eddyb

as per #28243.
This commit is contained in:
bors 2015-09-14 20:37:49 +00:00
commit bc6c3970a0
2 changed files with 17 additions and 1 deletions

View file

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