Skip to main content

rewrite_line

Function rewrite_line 

Source
pub fn rewrite_line(text: &str, line: usize, from: &str, to: &str) -> String
Expand description

The same text with one line’s pinned version replaced: the first occurrence of from after the release-kit mention on that line. Only those bytes change; every other byte of the file survives.