Skip to content

Commit

Permalink
Update index.md coin struct declaration for id
Browse files Browse the repository at this point in the history
Changing "info: Info" to "id: UID"
  • Loading branch information
shiralitech authored and sblackshear committed Sep 11, 2022
1 parent 8414159 commit dc52317
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/src/build/move/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ represent different types of user-defined coins as Sui objects:

``` rust
struct Coin<phantom T> has key, store {
info: Info,
id: UID,
value: u64
}
```
Expand All @@ -161,7 +161,7 @@ and [structs](https://github.com/move-language/move/blob/main/language/documenta
in the Move book.

In order for a Move struct type to define a Sui object type such as
`Coin`, its first field must be `info: Info`, which is a
`Coin`, its first field must be `id: UID`, which is a
struct type defined in the
[object module](https://github.com/MystenLabs/sui/blob/main/crates/sui-framework/sources/object.move). The
Move struct type must
Expand Down

0 comments on commit dc52317

Please sign in to comment.