Skip to content

Commit

Permalink
docs: import typo on the conventions example (#15999)
Browse files Browse the repository at this point in the history
## Description 

Describe the changes or additions included in this PR.

It fixes a typo on the import statement of move code example.

## Test Plan 

How did you test the new or updated feature?

---
If your changes are not user-facing and do not break anything, you can
skip the following section. Otherwise, please briefly describe what has
changed under the Release Notes section.

### Type of Change (Check all that apply)

- [ ] protocol change
- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes
  • Loading branch information
josemvcerqueira authored Jan 30, 2024
1 parent 20bf063 commit 1a3a422
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/content/concepts/sui-move-concepts/conventions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,16 @@ module conventions::profile {
module conventions::defi {
use conventions::lib::{Self, Profile};
use conventions::profile::{Self, Profile};
public fun get_tokens(profile: &Profile) {
// ✅ Right
let name = profile.age();
// ✅ Right
let name = profile.age();
// ❌ Wrong
let name2 = profile.profile_age();
// ❌ Wrong
let name2 = profile.profile_age();
}
}
```

Expand Down

0 comments on commit 1a3a422

Please sign in to comment.