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"];