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:
parent
b3eed3af79
commit
7095cc6b50
1 changed files with 4 additions and 4 deletions
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue