pub fn edit_lines(
text: &str,
start: usize,
end: usize,
new: &str,
) -> Result<String>Expand description
Replaces a 1-based inclusive line range with new.
new is inserted exactly as provided. Callers that want the replacement to
end in a newline include it in new.