[][src]Function syn_str::remove_comments

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

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.