diff --git a/matcher/src/pattern.rs b/matcher/src/pattern.rs index 495feed..bb8cb0a 100644 --- a/matcher/src/pattern.rs +++ b/matcher/src/pattern.rs @@ -301,6 +301,8 @@ impl Atom { /// /// *Note:* The `ignore_case` setting is overwritten to match the casing of /// each pattern atom. + /// + /// Returns `None` if `needle` from `matcher` is longer than `haystack` pub fn score(&self, haystack: Utf32Str<'_>, matcher: &mut Matcher) -> Option { matcher.config.ignore_case = self.ignore_case; matcher.config.normalize = self.normalize;