Skip to main content

cap_lines

Function cap_lines 

Source
pub fn cap_lines(text: &str, max: usize) -> String
Expand description

Keep at most max lines, dropping the rest.