Clarify comment

pull/919/head
Wilfred Hughes 2025-11-14 16:28:54 +07:00
parent 3e567b001d
commit c2c74fe1f4
1 changed files with 1 additions and 1 deletions

@ -51,7 +51,7 @@ pub(crate) fn split_words_and_numbers(s: &str) -> Vec<&str> {
// Word character, add to the current word if it's // Word character, add to the current word if it's
// not a number. // not a number.
if c.is_ascii_digit() == start_c.is_ascii_digit() { if c.is_ascii_digit() == start_c.is_ascii_digit() {
// Just carry on in this word. // Just carry on in this word/number.
} else { } else {
// Finish previous word, start a new one. // Finish previous word, start a new one.
words.push(&s[start..idx]); words.push(&s[start..idx]);