Function remove_comments

Source
pub fn remove_comments(item: &str) -> Result<String, &'static str>
Expand description

Remove all the non-doc comments from an stringified item,for the doc ones use remove_item_attrs instead.

ยงErrors

This function will throw an error at an unmatched comment block delimiter /**/ thing that almost never occurs when writing procedural macros because this throws a compiler error before a macro can do any.