Skip to content

Commit

Permalink
Reverted a change that was already fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
jangid authored Aug 30, 2024
1 parent 313dfa8 commit 7082441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/guides/developer/first-app/write-package.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Populate the `my_module.move` file with the following code:

The comments in the preceding code highlight different parts of a typical Move source file.

* **Part 1: Imports** - Code reuse is a necessity in modern programming. Move supports this concept with imports that allow your module to use types and functions declared in other modules. In this example, the module imports from `object`, `transfer`, and `tx_context` modules. These modules are available to the package because the `Move.toml` file defines the Sui dependency (along with the `sui` named address) where they are defined.
- **Part 1: Imports** - Code reuse is a necessity in modern programming. Move supports this concept with `use` aliases that allow your module to refer to types and functions declared in other modules. In this example, the module imports from `object`, `transfer`, and `tx_context` modules, but it does not need to do so explicitly, because the compiler provides these `use` statements by default. These modules are available to the package because the `Move.toml` file defines the Sui dependency (along with the `sui` named address) where they are defined.

- **Part 2: Struct declarations** - Structs define types that a module can create or destroy. Struct definitions can include abilities provided with the `has` keyword. The structs in this example, for instance, have the `key` ability, which indicates that these structs are Sui objects that you can transfer between addresses. The `store` ability on the structs provides the ability to appear in other struct fields and be transferred freely.

Expand Down

0 comments on commit 7082441

Please sign in to comment.