From c2c562f579c58fdf053b016a6722677c80200331 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Fri, 14 Nov 2025 16:29:17 -0800 Subject: [PATCH] Fix example in doc comment --- src/words.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/words.rs b/src/words.rs index af2f11cc5..9a1e6950b 100644 --- a/src/words.rs +++ b/src/words.rs @@ -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 /// 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> { let mut words = vec![]; let mut word_start: Option<(usize, char)> = None;