1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: remove debug comments before for loops

This commit is contained in:
Alexander Medvednikov 2021-06-26 02:05:53 +03:00
parent 19dca026a9
commit 02f4f635cf

View File

@ -1537,7 +1537,7 @@ fn (mut g Gen) for_in_stmt(node ast.ForInStmt) {
g.writeln('; ++$i) {')
} else if node.kind == .array {
// `for num in nums {`
g.writeln('// FOR IN array')
// g.writeln('// FOR IN array')
styp := g.typ(node.val_type)
val_sym := g.table.get_type_symbol(node.val_type)
mut cond_var := ''
@ -1635,7 +1635,7 @@ fn (mut g Gen) for_in_stmt(node ast.ForInStmt) {
}
} else if node.kind == .map {
// `for key, val in map {
g.writeln('// FOR IN map')
// g.writeln('// FOR IN map')
mut cond_var := ''
if node.cond is ast.Ident {
cond_var = g.expr_string(node.cond)