pub fn diff_lines(text: &str) -> Vec<&str>Expand description
How a text becomes lines: split('\n') exactly — no trimming, no dropping
of a trailing empty element (a raw ending in \n yields one) — with a single
special case: the empty text has no lines (an empty file is zero lines,
not one empty line), so a diff from/to nothing is @@ -0,0 +1,n @@.