From 82f2263b1ffb804817214cc19114e2ffbb3b63ff Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Thu, 31 Mar 2022 14:53:10 -0400 Subject: [PATCH] add comments --- src/hashmap_helper.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hashmap_helper.rs b/src/hashmap_helper.rs index df1d6a5..01b0928 100644 --- a/src/hashmap_helper.rs +++ b/src/hashmap_helper.rs @@ -1,5 +1,7 @@ use std::collections::HashSet; +/// 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(); @@ -42,6 +44,7 @@ pub fn compile_hashmap(data: Vec) -> Vec<(String, String)> { output } +/// Returns a vector of all possible splitting combinations of a strings #[allow(dead_code)] fn all_possible_splits( func: String, seen: &mut HashSet<(String, String)>,