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`. 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");