Use std.mem.trim instead of std.fmt.trim
This commit is contained in:
parent
3cbf7dbe05
commit
60fbb33a20
@ -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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user