Use std.mem.trim instead of std.fmt.trim

This commit is contained in:
Lee Cannon 2020-11-02 14:02:35 +00:00
parent 3cbf7dbe05
commit 60fbb33a20

View File

@ -51,7 +51,7 @@ pub fn collectDocComments(
switch (tree.token_ids[curr_line_tok]) {
.LineComment => continue,
.DocComment, .ContainerDocComment => {
try lines.append(std.fmt.trim(tree.tokenSlice(curr_line_tok)[3..]));
try lines.append(std.mem.trim(u8, tree.tokenSlice(curr_line_tok)[3..], &[_]u8{ ' ', '\t', '\n', '\r' }));
},
else => break,
}