Skip to content

Commit

Permalink
oh.. :)
Browse files Browse the repository at this point in the history
  • Loading branch information
kek kek kek committed Oct 28, 2023
1 parent 861bbba commit 3220b41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tooling/nargo_fmt/src/visitor/stmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl super::FmtVisitor<'_> {
let identifier = self.slice(for_stmt.identifier.span());
let range = match for_stmt.range {
ForRange::Range(start, end) => format!(
"{} in {}",
"{}..{}",
self.format_sub_expr(start),
self.format_sub_expr(end)
),
Expand Down
4 changes: 2 additions & 2 deletions tooling/nargo_fmt/tests/expected/for.nr
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ fn for_stmt() {
}

fn for_stmt() {
for i in 0 in (C1 - 1) {
for _j in 1 in (C1 - i - 1) {
for i in 0..(C1 - 1) {
for _j in 1..(C1 - i - 1) {
b *= b;
}

Expand Down

0 comments on commit 3220b41

Please sign in to comment.