Function clippy_utils::source::without_block_comments

source ·
pub fn without_block_comments(lines: Vec<&str>) -> Vec<&str>
Expand description

Removes block comments from the given Vec of lines.

§Examples

without_block_comments(vec!["/*", "foo", "*/"]);
// => vec![]

without_block_comments(vec!["bar", "/*", "foo", "*/"]);
// => vec!["bar"]