1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -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 GitHub
parent e9ecfdd20a
commit 59dedf217f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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