Skip to content

Commit

Permalink
fix: avoid shadowing index variable
Browse files Browse the repository at this point in the history
  • Loading branch information
myuon committed Sep 10, 2023
1 parent 01e1037 commit 15d8089
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions quartz/formatter.qz
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ module Formatter {
self.write_no_space(writer, attr.name.data);
if attr.args.length > 0 {
self.write_no_space(writer, "(");
for i in 0..attr.args.length {
let arg = attr.args.at(i);
for j in 0..attr.args.length {
let arg = attr.args.at(j);
self.expr(writer, arg, true);
if i != attr.args.length - 1 {
if j != attr.args.length - 1 {
self.write_no_space(writer, ", ");
}
}
Expand Down

0 comments on commit 15d8089

Please sign in to comment.