Skip to main content

find_section

Function find_section 

Source
pub fn find_section<'a>(
    spans: &'a [SectionSpan],
    heading: &str,
) -> Result<&'a SectionSpan, EditError>
Expand description

Find the one section addressed by heading (exact text match on the extracted heading, surrounding whitespace trimmed from the query).