Skip to main content

remove_range

Function remove_range 

Source
pub fn remove_range(
    src: &str,
    start: Loc,
    end: Loc,
) -> Result<String, EditError>
Expand description

Removes the half-open range start..end.

ยงErrors

When a point is outside the source, or end is before start.