mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-12 02:40:41 -04:00
Replace redundant code
This commit is contained in:
1 parent
bc5c37ebb1
commit
e1ae359a77
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1028,7 +1028,7 @@ Token consume_comment(AstFile *f, isize *end_line_) {
|
||||
GB_ASSERT(tok.kind == Token_Comment);
|
||||
isize end_line = tok.pos.line;
|
||||
if (tok.string[1] == '*') {
|
||||
for (isize i = 0; i < tok.string.len; i++) {
|
||||
for (isize i = 2; i < tok.string.len; i++) {
|
||||
if (tok.string[i] == '\n') {
|
||||
end_line++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user