From 6891a328d151a8324240bc8a244f3f4875c1efc9 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Sat, 9 Aug 2025 12:34:40 +0200 Subject: [PATCH 1/2] Remove old #[cfg(feature = "unicode") on a test --- src/train.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/train.rs b/src/train.rs index 4fcc195..3b975e2 100644 --- a/src/train.rs +++ b/src/train.rs @@ -67,7 +67,6 @@ mod tests { t!(test6: "SHOUTY_SNAKE_CASE" => "Shouty-Snake-Case"); t!(test7: "snake_case" => "Snake-Case"); t!(test8: "this-contains_ ALLKinds OfWord_Boundaries" => "This-Contains-All-Kinds-Of-Word-Boundaries"); - #[cfg(feature = "unicode")] t!(test9: "XΣXΣ baffle" => "Xσxς-Baffle"); t!(test10: "XMLHttpRequest" => "Xml-Http-Request"); t!(test11: "FIELD_NAME11" => "Field-Name11"); From e5d165e06500d099179a54fc8dba9bbf43fb9c30 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Sat, 9 Aug 2025 12:35:54 +0200 Subject: [PATCH 2/2] Fix crate root doc indentation --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ab8a015..5d3a4d8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,10 +10,10 @@ //! within those words in this manner: //! //! 1. If an uppercase character is followed by lowercase letters, a word -//! boundary is considered to be just prior to that uppercase character. +//! boundary is considered to be just prior to that uppercase character. //! 2. If multiple uppercase characters are consecutive, they are considered to -//! be within a single word, except that the last will be part of the next word -//! if it is followed by lowercase characters (see rule 1). +//! be within a single word, except that the last will be part of the next wo +//! word if it is followed by lowercase characters (see rule 1). //! //! That is, "HelloWorld" is segmented `Hello|World` whereas "XMLHttpRequest" is //! segmented `XML|Http|Request`.