MCPcopy Create free account
hub / github.com/QMHTMY/RustBook / main

Function main

publication/code/chapter10/edit_distance.rs:67–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65}
66
67fn main() {
68 let source = "abce";
69 let target = "adcf";
70 let distance = edit_distance(source, target);
71 println!("distance between {source} and {target}: {distance}");
72
73 let source = "bdfc";
74 let target = "adcf";
75 let distance = edit_distance(source, target);
76 println!("distance between {source} and {target}: {distance}");
77
78 let source = "abced";
79 let target = "adcf";
80 let distance = edit_distance2(source, target);
81 println!("distance between {source} and {target}: {distance}");
82}

Callers

nothing calls this directly

Calls 2

edit_distanceFunction · 0.70
edit_distance2Function · 0.70

Tested by

no test coverage detected