Skip to content

Commit 09b4d51

Browse files
committed
Fix a comment and some code formatting.
1 parent f59985c commit 09b4d51

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/tokenizer.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ fn consume_numeric<'a>(tokenizer: &mut Tokenizer<'a>) -> Token<'a> {
685685
if tokenizer.has_at_least(1) && tokenizer.next_char() == '.'
686686
&& matches!(tokenizer.char_at(1), '0'...'9') {
687687
is_integer = false;
688-
tokenizer.advance(1); // '.' and first digit
688+
tokenizer.advance(1); // Consume '.'
689689
let mut divisor = 10.;
690690
while let Some(digit) = tokenizer.next_char().to_digit(10) {
691691
fractional_part += digit as f64 / divisor;
@@ -757,8 +757,7 @@ fn consume_numeric<'a>(tokenizer: &mut Tokenizer<'a>) -> Token<'a> {
757757
};
758758
if is_ident_start(tokenizer) {
759759
Dimension(value, consume_name(tokenizer))
760-
}
761-
else {
760+
} else {
762761
Number(value)
763762
}
764763
}

0 commit comments

Comments
 (0)