Skip to main content

parse_block_doc_comment

Function parse_block_doc_comment 

Source
pub fn parse_block_doc_comment(text: &str) -> String
Expand description

Parse a block doc comment (/** … / or /! … */) into clean content.

This is a shared helper for extracting doc comments in JSDoc, NatSpec, and Rust doc styles. It strips the comment delimiters and leading asterisks from each line.