Skip to main content

strip_comments

Function strip_comments 

Source
pub fn strip_comments(src: &str) -> String
Expand description

Strips // and /* */ comments, keeping line breaks (strings are left as they are: a comment marker inside one is rare and only hides text).