From c2eee7269ad95c65af5036f5866b72030ab0065c Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Thu, 7 Apr 2022 09:16:18 -0400 Subject: [PATCH] comments --- src/autocomplete_helper.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/autocomplete_helper.rs b/src/autocomplete_helper.rs index 88ff831..6a83621 100644 --- a/src/autocomplete_helper.rs +++ b/src/autocomplete_helper.rs @@ -9,8 +9,7 @@ fn compare_len_reverse_alpha(a: &String, b: &String) -> Ordering { } } -/// Generates hashmap (well really a vector of tuple of strings that are then -/// turned into a hashmap by phf) +/// Generates hashmap (well really a vector of tuple of strings that are then turned into a hashmap by phf) #[allow(dead_code)] pub fn compile_hashmap(data: Vec) -> Vec<(String, String)> { let start = std::time::Instant::now(); @@ -76,6 +75,7 @@ fn all_possible_splits( mod tests { use super::*; + /// Tests to make sure hashmap generation works as expected #[test] fn hashmap_gen_test() { let data = vec!["time", "text", "test"];