Skip to main content

hunk_header

Function hunk_header 

Source
pub fn hunk_header(old: Range<usize>, new: Range<usize>) -> String
Expand description

@@ -a,b +c,d @@ for 0-based line ranges, with diff -u’s conventions: a single line omits ,1, and an empty range names the line before it.