(s: &str)
| 45 | } |
| 46 | |
| 47 | fn strip_comments(s: &str) -> String { |
| 48 | let mut r = "".to_string(); |
| 49 | for line in s.lines() { |
| 50 | let len = line.find("// {").unwrap_or(line.len()); |
| 51 | r.push_str(line[0..len].trim_end()); |
| 52 | r.push_str("\n"); |
| 53 | } |
| 54 | r |
| 55 | } |
no test coverage detected