diff --git a/src/levenshtein.rs b/src/levenshtein.rs index 8b3e6e8..97bec3b 100644 --- a/src/levenshtein.rs +++ b/src/levenshtein.rs @@ -116,11 +116,11 @@ pub fn levenshtein_naive(a: &[T], b: &[T]) -> u32 { /// ``` /// # use triple_accel::*; /// # use triple_accel::levenshtein::*; -/// let dist = levenstein_naive_str("abc", "ab"); +/// let dist = levenshtein_naive_str("abc", "ab"); /// /// assert!(dist == 1); /// ``` -pub fn levenstein_naive_str(a: &str, b: &str) -> u32 { +pub fn levenshtein_naive_str(a: &str, b: &str) -> u32 { let a: Vec = a.chars().collect(); let b: Vec = b.chars().collect(); levenshtein_naive(&a, &b)