From 59dedf217f0d43dd75da0f615846526d088dbf0b Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Sun, 18 Dec 2022 06:26:25 +0800 Subject: [PATCH] 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.) --- cli/tools/init/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/tools/init/mod.rs b/cli/tools/init/mod.rs index bb11dba691..ca919b606b 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(()) }