Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq authored Nov 3, 2024
1 parent eddbf93 commit 307ce61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/cbuilderstmts.nim
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ template addElseBranch(builder: var Builder, stmt: var IfStmt, body: typed) =
body
builder.add("}")

proc addForRangeHeader(builder: var Builder, i, start, bound: Snippet, inclusive: static bool = false) =
proc addForRangeHeader(builder: var Builder, i, start, bound: Snippet, inclusive: bool = false) =
builder.add("for (")
builder.add(i)
builder.add(" = ")
builder.add(start)
builder.add("; ")
builder.add(i)
when inclusive:
if inclusive:
builder.add(" <= ")
else:
builder.add(" < ")
Expand Down

0 comments on commit 307ce61

Please sign in to comment.