Skip to main content

diff_text

Function diff_text 

Source
pub fn diff_text(old: &str, new: &str) -> TextDiffResult
Expand description

Compute a line-level diff between two strings.

Returns hunks with 1 line of surrounding context per change group. Consecutive Delete+Insert pairs are converted to Modified entries with word-level diff segments.