diff --git a/components/suggest/src/pocket.rs b/components/suggest/src/pocket.rs index 2537b023bf..cf7070c62a 100644 --- a/components/suggest/src/pocket.rs +++ b/components/suggest/src/pocket.rs @@ -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", ""));