From 8197002a4f4f797c61cf9acff004545501d25c15 Mon Sep 17 00:00:00 2001 From: sriram98v Date: Wed, 27 Sep 2023 13:15:21 -0500 Subject: [PATCH] corrected error in doctest --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index f374c98..59372ab 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -17,10 +17,10 @@ //! //! //! // Query if some string is a substring in the tree -//! let substring_match = tree.substring_match(&item_string[i..i+max_depth+1]); +//! let substring_match = tree.substring_match(&"STVASSLVLVVSLGAISFWMCSNGSLQCRICI".chars().collect::>()); //! //! // Query if some string is a suffix in the tree -//! let suffix_match = tree.suffix_match(&item_string[i..i+max_depth+1]); +//! let suffix_match = tree.suffix_match(&"RGVAPLHLGKCNIAGWILGNPECESLSTAGSWSYIVE".chars().collect::>()); //! //! // Clear tree //! tree.clear();