We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d46b3b1 commit 19d7d52Copy full SHA for 19d7d52
src/lib.rs
@@ -1304,7 +1304,7 @@ where
1304
// ignore '+'/'-' if part of an exponent
1305
if (c == b'+' || c == b'-') && !(p == b'e' || p == b'E') {
1306
// trim whitespace around the separator
1307
- a = &s[..i + 1].trim_right_matches(is_whitespace);
+ a = &s[..=i].trim_right_matches(is_whitespace);
1308
b = &s[i + 2..].trim_left_matches(is_whitespace);
1309
neg_b = c == b'-';
1310
0 commit comments