Skip to main content

comment_body

Function comment_body 

pub fn comment_body(source: &str, span: Span) -> &str
Expand description

Extract the body of a Comment trivia token: everything after the leading -- marker, preserving its inline whitespace verbatim. Used by the parser when attaching comments to declarations.