pub fn head(text: &str, limit: usize) -> StringExpand description
Keep the head of text, which is where a compiler’s real error is.
Counting characters rather than bytes, so a multi-byte character is never cut in half and the result is always printable.