@@ -688,7 +688,7 @@ impl Cursor<'_> {
688
688
}
689
689
}
690
690
( 'e' | 'E' , '0' ..='9' | '+' | '-' ) => {
691
- // definitely an exponent
691
+ // Definitely an exponent (which still can be empty).
692
692
self . bump ( ) ;
693
693
empty_exponent = !self . eat_float_exponent ( ) ;
694
694
suffix_start = self . pos_within_token ( ) ;
@@ -700,7 +700,7 @@ impl Cursor<'_> {
700
700
( Float { base, empty_exponent } , suffix_start)
701
701
}
702
702
( 'e' | 'E' , '_' ) => {
703
- // see above bock for similar apporach
703
+ // See above block for similar approach.
704
704
let non_exponent_suffix_start = self . pos_within_token ( ) ;
705
705
self . bump ( ) ;
706
706
while matches ! ( self . first( ) , '_' ) {
@@ -718,7 +718,7 @@ impl Cursor<'_> {
718
718
}
719
719
}
720
720
( 'e' | 'E' , '0' ..='9' | '+' | '-' ) => {
721
- // definitely an exponent
721
+ // // Definitely an exponent (which still can be empty).
722
722
self . bump ( ) ;
723
723
let empty_exponent = !self . eat_float_exponent ( ) ;
724
724
let suffix_start = self . pos_within_token ( ) ;
@@ -978,7 +978,7 @@ impl Cursor<'_> {
978
978
}
979
979
}
980
980
981
- /// Returns `true` if a digit was consumed (rather than just '_')
981
+ /// Returns `true` if a digit was consumed (rather than just '_'s).
982
982
fn eat_decimal_digits ( & mut self ) -> bool {
983
983
let mut has_digits = false ;
984
984
loop {
0 commit comments