1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 17:49:08 -05:00

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.)
This commit is contained in:
Pig Fang 2022-12-18 06:26:25 +08:00 committed by Bartek Iwańczuk
parent b3eed3af79
commit 7095cc6b50
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750

View file

@ -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(())
}