Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jonybur committed Oct 11, 2023
1 parent 1c15582 commit 60ce746
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tooling/nargo_fmt/src/visitor/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ impl FmtVisitor<'_> {
ExpressionKind::MemberAccess(member_access_expr) => {
let lhs_str = self.format_expr(member_access_expr.lhs);
format!("{}.{}", lhs_str, member_access_expr.rhs)
}
ExpressionKind::Index(index_expr) => {
let formatted_collection =
self.format_expr(index_expr.collection).trim_end().to_string();
Expand Down

0 comments on commit 60ce746

Please sign in to comment.