pub fn extract_snippet(input: &[u8], offset: usize) -> StringExpand description
Extract a snippet of input around the error location
Returns up to MAX_SNIPPET_LENGTH characters centered around the offset, with invalid UTF-8 bytes replaced with replacement characters.