Skip to main content

truncate_error

Function truncate_error 

Source
pub fn truncate_error(error: &str, max_len: usize) -> String
Expand description

Truncates an error string without splitting UTF-8 code points.