Skip to content

Commit

Permalink
Update ch1-object-basics.md (MystenLabs#7348)
Browse files Browse the repository at this point in the history
add more detail
Now a reader does not have to follow the link to find out where he
should go and look in his local repo.
  • Loading branch information
georgescharlesbrain authored Jan 12, 2023
1 parent bae8baf commit 1638633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/src/build/programming-with-objects/ch1-object-basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ public fun get_color(self: &ColorObject): (u8, u8, u8) {
}
```

Find the full code online in [color_object.move](https://github.com/MystenLabs/sui/blob/main/sui_programmability/examples/objects_tutorial/sources/color_object.move).
Find the full code in the Sui repo under `sui_programmability/examples/objects_tutorial/sources/` in [color_object.move](https://github.com/MystenLabs/sui/blob/main/sui_programmability/examples/objects_tutorial/sources/color_object.move).

To compile the code, make sure you have [installed Sui](../install.md) so that `sui` is in `PATH`. In the code root directory (where `Move.toml` is), run:
To compile the code, make sure you have [installed Sui](../install.md) so that `sui` is in `PATH`. In the code root directory `(../examples/objects_tutorial/)` (where `Move.toml` is), run:
```
sui move build
```
Expand Down

0 comments on commit 1638633

Please sign in to comment.