summaryrefslogtreecommitdiff
path: root/cli/tools/init/mod.rs
diff options
context:
space:
mode:
authorPig Fang <g-plane@hotmail.com>2022-12-18 06:26:25 +0800
committerGitHub <noreply@github.com>2022-12-17 23:26:25 +0100
commit59dedf217f0d43dd75da0f615846526d088dbf0b (patch)
treed005341646257b9aa14a0ddc9a0f2172ca582536 /cli/tools/init/mod.rs
parente9ecfdd20ac3f8a9d920bbcc4e5dd25bd262b4b7 (diff)
fix(init): update comment style (#17074)
The output of `init` are commands, so this should be treated as a "Shell script". In Shell script, comments must start with `#`, not `//`. (This also makes the commands example easier to be copied to somewhere.)
Diffstat (limited to 'cli/tools/init/mod.rs')
-rw-r--r--cli/tools/init/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/tools/init/mod.rs b/cli/tools/init/mod.rs
index bb11dba69..ca919b606 100644
--- a/cli/tools/init/mod.rs
+++ b/cli/tools/init/mod.rs
@@ -53,19 +53,19 @@ pub async fn init_project(init_flags: InitFlags) -> Result<(), AnyError> {
info!(" cd {}", dir);
info!("");
}
- info!(" {}", colors::gray("// Run the program"));
+ info!(" {}", colors::gray("# Run the program"));
info!(" deno run main.ts");
info!("");
info!(
" {}",
- colors::gray("// Run the program and watch for file changes")
+ colors::gray("# Run the program and watch for file changes")
);
info!(" deno task dev");
info!("");
- info!(" {}", colors::gray("// Run the tests"));
+ info!(" {}", colors::gray("# Run the tests"));
info!(" deno test");
info!("");
- info!(" {}", colors::gray("// Run the benchmarks"));
+ info!(" {}", colors::gray("# Run the benchmarks"));
info!(" deno bench");
Ok(())
}