Skip to content

Commit

Permalink
chore: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
iamnamananand996 committed Aug 27, 2024
1 parent a76d6ff commit dde4639
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ fn new_system(cfg_override: &ConfigOverride, name: String) -> Result<()> {
})
}

// Create a new component from the template
// Create a new world from the template
fn new_world(cfg_override: &ConfigOverride, name: String) -> Result<()> {
with_workspace(cfg_override, |cfg| {
match cfg.path().parent() {
Expand Down
3 changes: 1 addition & 2 deletions cli/src/rust_template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub(crate) fn create_system(name: &str) -> Result<()> {
anchor_cli::create_files(&[common_files, template_files].concat())
}

/// Create a component from the given name.
/// Create a world from the given name.
pub fn create_world(name: &str) -> Result<()> {
let program_path = Path::new("programs-ecs/world").join(name);
let common_files = vec![
Expand Down Expand Up @@ -134,7 +134,6 @@ pub mod {} {{
)]
}

/// Create a world.
fn create_world_template_simple(name: &str, program_path: &Path) -> Files {
vec![(
program_path.join("src").join("lib.rs"),
Expand Down

0 comments on commit dde4639

Please sign in to comment.