Skip to main content

insert_at_line

Function insert_at_line 

Source
pub fn insert_at_line(text: &str, line_index: usize, new_text: &str) -> String
Expand description

Insert text at a specific line (0-based)