Skip to main content

truncate

Function truncate 

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

Enough of a long string to recognise, without pasting the whole thing into an error message.