fuzzy-string-distance 1.0.0

Fuzzy string distance comparisons
Documentation
1
2
3
4
5
6
7
use fuzzy_string_distance::levenshtein_distance;

fn main() {
    assert_eq!(1, levenshtein_distance(&"rust", &"rusty")); // insert y
    assert_eq!(3, levenshtein_distance(&"bug", &"")); // delete all characters
    assert_eq!(2, levenshtein_distance(&"typography", &"typpgrapy")); // fix both typos
}