pub fn truncate_source(src: &str, max_len: usize) -> String
Truncate source text to at most max_len chars, appending … if needed.
max_len
…