Skip to content

Commit

Permalink
Update components/suggest/src/pocket.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Lina Butler <[email protected]>
  • Loading branch information
tiftran and linabutler authored Oct 4, 2023
1 parent 05b2c61 commit a482d76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/suggest/src/pocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ impl ToSql for KeywordConfidence {

/// Split the keyword by the first whitespace into the prefix and the suffix.
/// Return an empty string as the suffix if there is no whitespace.
///
/// # Examples
///
/// ```
/// # use suggest::pocket::split_keyword;
/// assert_eq!(split_keyword("foo"), ("foo", ""));
Expand Down

0 comments on commit a482d76

Please sign in to comment.