Skip to main content

strip_line_comments

Function strip_line_comments 

Source
pub fn strip_line_comments(text: &str) -> String
Expand description

去掉整行 # 注释(不处理字符串内的 #);str fmt --strip-comments 的唯一入口。