Merge pull request #183 from leecannon/master

std.fmt.trim is now deprectated
This commit is contained in:
Alexandros Naskos 2020-11-04 10:19:24 +02:00 committed by GitHub
commit 5e327b41ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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..], &std.ascii.spaces));
},
else => break,
}