Skip to content

Commit 7483c93

Browse files
Update compiler/rustc_session/src/errors.rs
Co-authored-by: Vadim Petrochenkov <[email protected]>
1 parent 1d32ca2 commit 7483c93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_session/src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ pub fn report_lit_error(
397397
s.len() > 1 && s.starts_with(first_chars) && s[1..].chars().all(|c| c.is_ascii_digit())
398398
}
399399

400-
fn looks_like_exponent(s: &str) -> bool {
400+
fn looks_like_empty_exponent(s: &str) -> bool {
401401
s.len() == 1 && matches!(s.chars().next(), Some('e' | 'E'))
402402
}
403403

0 commit comments

Comments
 (0)