0.1.1 |
|
---|
#54 in #levenshtein
3KB
levenshtein-distance.rs
Provides the Levenshtein distance algorithm for Rust.
Usage
[dependencies]
levenshtein-distance = "0.1.1"
use levenshtein_distance::compute;
fn main() {
let cat = "I Am a Cat";
let dog = "I Am a Dog";
println!("{}", compute(cat, dog));
// -> 3
}