diff options
Diffstat (limited to 'src/syntax')
| -rw-r--r-- | src/syntax/parsing.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syntax/parsing.rs b/src/syntax/parsing.rs index 41a8728b..dcba1d0f 100644 --- a/src/syntax/parsing.rs +++ b/src/syntax/parsing.rs @@ -253,7 +253,7 @@ impl<'s> Parser<'s> { // This loop does not actually loop, but is used for breaking. loop { if text.ends_with('%') { - if let Ok(percent) = text[..text.len() - 1].parse::<f64>() { + if let Ok(percent) = text[.. text.len()-1].parse::<f64>() { break Expression::Num(percent / 100.0); } } |
