Skip to main content

str_count_newlines

Function str_count_newlines 

Source
pub fn str_count_newlines(s: &str) -> usize
Expand description

Counts the number of newlines in a string