Fix tuple float bug.
This commit is contained in:
parent
b7b1dced3c
commit
afa905fcf5
2 changed files with 17 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue