Skip to main content

insert_roxygen_line

Function insert_roxygen_line 

Source
fn insert_roxygen_line(content: &str, new_line: &str) -> String
Expand description

Insert a roxygen line into a fragment at a tag boundary: before the first @export / @keywords / @source line, else after the last roxygen line.