Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions matcher/src/pattern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Analogous to other docstrings:

Suggested change
/// Returns [None] if `needle` from `matcher` is longer than `haystack`
/// Returns `None` if `needle` from `matcher` is longer than `haystack`

pub fn score(&self, haystack: Utf32Str<'_>, matcher: &mut Matcher) -> Option<u16> {
matcher.config.ignore_case = self.ignore_case;
matcher.config.normalize = self.normalize;
Expand Down