Skip to main content

strip_comments_and_trim

Function strip_comments_and_trim 

Source
pub fn strip_comments_and_trim(input: &str) -> String
Expand description

Strip all lines whose first non-whitespace byte is #, then trim trailing whitespace.