Skip to main content

expand_span

Function expand_span 

Source
pub fn expand_span(
    err: &ParseError,
    source_len: usize,
    n: usize,
) -> (usize, usize)
Expand description

Expand the span of an error by n bytes on both sides (clamped to source bounds).