Skip to main content

diff_chars

Function diff_chars 

Source
pub fn diff_chars(old: &str, new: &str) -> Vec<DiffChange>
Expand description

Compute character-by-character diff between two strings

§Example

use revue::utils::diff::diff_chars;

let changes = diff_chars("hello", "hallo");
// Equal("h"), Delete("e"), Insert("a"), Equal("llo")