pub fn remove_unwanted_lines(s: String) -> String
Expand description
Removes all doc comments (///
, //!
), attribute lines (#[...]
), and normal //
comments
when remove_doc_comments = true
. Also handles inline //
in code lines by truncation, preserving whitespace.