diff options
Diffstat (limited to 'src/snippet/mod.rs')
-rw-r--r-- | src/snippet/mod.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/snippet/mod.rs b/src/snippet/mod.rs index 1ecba1c..1f602c9 100644 --- a/src/snippet/mod.rs +++ b/src/snippet/mod.rs @@ -213,11 +213,9 @@ fn select_best_fragment_combination(fragments: &[FragmentCandidate], text: &str) /// # Example /// /// ```rust -/// # #[macro_use] -/// # extern crate tantivy; -/// # use tantivy::Index; -/// # use tantivy::schema::{Schema, TEXT}; /// # use tantivy::query::QueryParser; +/// # use tantivy::schema::{Schema, TEXT}; +/// # use tantivy::{doc, Index}; /// use tantivy::SnippetGenerator; /// /// # fn main() -> tantivy::Result<()> { |