diff --git a/src/analysis.zig b/src/analysis.zig index 3f51bc5..a564a5f 100644 --- a/src/analysis.zig +++ b/src/analysis.zig @@ -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, }