Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add constructor formatter #3107

Closed
wants to merge 12 commits into from
Prev Previous commit
Next Next commit
Fix test
jonybur committed Oct 11, 2023
commit d2a99f24190995cbea9b30f8dcca4a791e96cd1c
6 changes: 3 additions & 3 deletions tooling/nargo_fmt/tests/expected/constructor.nr
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
struct Point {
x: i32,
y: i32,
x: u8,
y: u8,
}

fn foo() {
Point { x: 5, y: 10 };
plain::Point { x: 5, y: 10 };
jonybur marked this conversation as resolved.
Show resolved Hide resolved
}