Skip to content

Commit

Permalink
Update expression.move (#52)
Browse files Browse the repository at this point in the history
lack of semicolon, it's return value should be an empty expression `()`
  • Loading branch information
yjshi2015 authored Apr 20, 2024
1 parent 999835e commit b526ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/samples/sources/move-basics/expression.move
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ let sum = {
let none = {
let a = 1;
let b = 2;
a + b // not returned - semicolon.
a + b; // not returned - semicolon.
// compiler automatically inserts an empty expression `()`
};
// ANCHOR_END: block
Expand Down

0 comments on commit b526ac1

Please sign in to comment.