Skip to main content

compute_edit_diff_plain

Function compute_edit_diff_plain 

Source
pub fn compute_edit_diff_plain(old_content: &str, new_content: &str) -> String
Expand description

Compute a unified diff between old and new content and return it as a plain-text string (no ANSI codes). Returns an empty string if the contents are identical.