Skip to main content

make_patch

Function make_patch 

Source
pub fn make_patch<'buffer>(
    patched: &'buffer str,
    original_content: &'buffer str,
) -> (Diff, InternedInput<&'buffer str>)
Expand description

A helper function to create a Diff and its associated InternedInput from a patched buffer and the `original_content`` of the file.