Skip to main content

excerpt

Function excerpt 

Source
pub(crate) fn excerpt(line: &str, max_chars: usize) -> String
Expand description

First max_chars of line for logs and error strings - a corrupt line can be arbitrarily large.