Skip to content

Commit a81db40

Browse files
committed
Oops!
1 parent 931d8df commit a81db40

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

compiler-core/src/erlang.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2429,8 +2429,8 @@ fn assert_and<'a>(
24292429
asserted_expression(AssertExpression::Unevaluated, None, right.location()),
24302430
),
24312431
("start", location.start.to_doc()),
2432+
("'end'", right.location().end.to_doc()),
24322433
("expression_start", left.location().start.to_doc()),
2433-
("expression_end", right.location().end.to_doc()),
24342434
];
24352435

24362436
let fields = vec![

compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_binary_operator_with_side_effects.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ go(X) ->
7474
'end' => 102
7575
},
7676
start => 75,
77-
expression_start => 82,
78-
expression_end => 102})
77+
'end' => 102,
78+
expression_start => 82})
7979
end.

compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_binary_operator_with_side_effects2.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ go(X) ->
7474
'end' => 110
7575
},
7676
start => 75,
77-
expression_start => 82,
78-
expression_end => 110})
77+
'end' => 110,
78+
expression_start => 82})
7979
end.

0 commit comments

Comments
 (0)