Skip to main content

unified_diff

Function unified_diff 

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

A compact unified diff between old and new, with context unchanged lines around each hunk. Returns an empty string when the inputs are identical.