From 4c28cf52a9eacfdfb7020341a8bd2f6b9632d5f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20M=C3=BCller?= Date: Sat, 17 Jun 2023 22:07:07 +0200 Subject: [PATCH] minor changes in Documentary --- src/search_index/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/search_index/mod.rs b/src/search_index/mod.rs index 6ac509a..e5a08af 100644 --- a/src/search_index/mod.rs +++ b/src/search_index/mod.rs @@ -7,8 +7,9 @@ //! to generate a database you need a vector of paths of picture that you want to save and search in it. //! You also need a Vector of Feature generator functions that generates the feature of every image //! +//! //!``` -//! # use std::path::{PathBuf}; +//! # use std::path::{Path, PathBuf}; //! # use imsearch::image::Image; //! # use imsearch::search_index; //! use imsearch::search_index::FeatureGenerator; @@ -16,7 +17,8 @@ //! let path: Vec = Vec::new(); //! let features: Vec = Vec::new(); //! -//! let Database = search_index::Database::new(&path, features ); +//! let mut database = search_index::Database::new(&path, features ); +//! database.add_image(Path::new("testpath")); //! ``` //! //!