0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-29 08:58:01 -04:00

docs(cli/dts): fix Deno.run example (#10567)

This commit is contained in:
Casper Beyer 2021-05-11 10:11:17 +08:00 committed by GitHub
parent 4f93cf9d75
commit 60c172cccb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1995,7 +1995,7 @@ declare namespace Deno {
* `stderr` use:
*
* ```ts
* const p = Deno.run({ cmd, stderr: 'piped', stdout: 'piped' });
* const p = Deno.run({ cmd: [ "echo", "hello world" ], stderr: 'piped', stdout: 'piped' });
* const [status, stdout, stderr] = await Promise.all([
* p.status(),
* p.output(),