Skip to main content

shorten

Function shorten 

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

Words a page wrote, made safe to show inside a line of ours: one line, nothing hidden, at most max characters.