Skip to content

Commit

Permalink
Add move 2024 Conventions as comments to the new package example (#20344
Browse files Browse the repository at this point in the history
)

## Description 
* Fix typo in 2024 Conventions
* ~Add Conventions as comments to a new package when `sui move new`~
* Add Conventions link to a new package when `sui move new`

## Test plan 
* no extra tests needed

## Release notes
- [X] CLI: Add Conventions as comments to a new package when `sui move
new`
  • Loading branch information
yanganto authored Dec 6, 2024
1 parent 005d177 commit 24850f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion crates/sui-move/src/new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ impl New {
r#"/*
/// Module: {name}
module {name}::{name};
*/"#,
*/
// For Move coding conventions, see
// https://docs.sui.io/concepts/sui-move-concepts/conventions
"#,
name = name
)?;

Expand Down
2 changes: 1 addition & 1 deletion docs/content/concepts/sui-move-concepts/conventions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module conventions::profile {
}
// ✅ Right
public fun age(self: &Profile): u64 {
public fun age(self: &Profile): u64 {
self.age
}
Expand Down

0 comments on commit 24850f3

Please sign in to comment.