From a482d76d0d47176a834daf4e77bf94292ca8e284 Mon Sep 17 00:00:00 2001 From: Tif Tran Date: Wed, 4 Oct 2023 13:27:17 -0700 Subject: [PATCH] Update components/suggest/src/pocket.rs Co-authored-by: Lina Butler --- components/suggest/src/pocket.rs | 3 +++ 1 file changed, 3 insertions(+) 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", ""));