pub fn unified_diff(old: &str, new: &str, context_lines: usize) -> StringExpand description
Produce a unified diff string (standard format with @@ hunk headers).
ⓘ
let diff = unified_diff("hello\nworld\n", "hello\nearth\n", 3);
assert!(diff.contains("-world"));
assert!(diff.contains("+earth"));