Skip to main content

clean_block_doc_content

Function clean_block_doc_content 

Source
pub(crate) fn clean_block_doc_content(raw: &str) -> String
Expand description

Strip the * block-comment line decoration from each line of a /** */ NatSpec item’s content. Solar preserves raw source bytes, so continuation lines look like * text and blank separator lines look like *. This normalises them to plain text / empty lines.