Function clippy_lints::doc::strip_doc_comment_decoration [] [src]

pub fn strip_doc_comment_decoration(
    comment: &str,
    span: Span
) -> (String, Vec<(usize, Span)>)

Cleanup documentation decoration (/// and such).

We can't use syntax::attr::AttributeMethods::with_desugared_doc or syntax::parse::lexer::comments::strip_doc_comment_decoration because we need to keep track of the spans but this function is inspired from the later.