Skip to main content

unified_diff

Function unified_diff 

Source
pub fn unified_diff(old: &str, new: &str, context: usize) -> UnifiedDiff
Expand description

Compute a unified diff between old and new (as whole strings). Uses a longest-common-subsequence algorithm over lines; context is the number of unchanged lines to keep around each change (0 = minimal diff).