Fix example in doc comment

pull/919/head
Wilfred Hughes 2025-11-14 16:29:17 +07:00
parent c2c74fe1f4
commit c2c562f579
1 changed files with 1 additions and 1 deletions

@ -40,7 +40,7 @@ pub(crate) fn split_words(s: &str) -> Vec<&str> {
/// Split `s` into a vec of things that look like words and individual /// Split `s` into a vec of things that look like words and individual
/// non-word characters. /// non-word characters.
/// ///
/// "foo..bar23" -> vec!["foo", ".", ".", "bar23"] /// "foo..bar23" -> vec!["foo", ".", ".", "bar", "23"]
pub(crate) fn split_words_and_numbers(s: &str) -> Vec<&str> { pub(crate) fn split_words_and_numbers(s: &str) -> Vec<&str> {
let mut words = vec![]; let mut words = vec![];
let mut word_start: Option<(usize, char)> = None; let mut word_start: Option<(usize, char)> = None;