Skip to main content

one_line

Function one_line 

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

Collapse to a single line and cap the length — a headline is one line by contract, and an error message is not.