Skip to content

Commit

Permalink
Update equality.md to fix a typo (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
Poglavar authored May 21, 2024
1 parent 90b7388 commit 9850ccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference/src/equality.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ reference types have the [`drop` ability](./abilities.md). For example

```move=
module 0x42::example {
public struct Coin as store { value: u64 }
public struct Coin has store { value: u64 }
fun swap_if_equal(c1: Coin, c2: Coin): (Coin, Coin) {
let are_equal = &c1 == c2; // valid, note `c2` is automatically borrowed
if (are_equal) (c2, c1) else (c1, c2)
Expand Down

0 comments on commit 9850ccf

Please sign in to comment.