Skip to main content

truncate_source

Function truncate_source 

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

Truncate source text to at most max_len chars, appending if needed.