Skip to main content

levenshtein

Function levenshtein 

Source
pub fn levenshtein(a: &str, b: &str) -> usize
Expand description

Levenshtein edit distance between two strings.

Counts the minimum number of single-character insertions, deletions, and substitutions required to transform a into b. Used by diagnostic passes to produce “did you mean X?” suggestions.