From 81a8cc44cd88a6f85c0e97c4a15e284a2eb7143e Mon Sep 17 00:00:00 2001 From: Geert-Jan Zwiers Date: Tue, 31 May 2022 01:44:16 +0200 Subject: [PATCH] chore(docs): use cross-platform example in `Deno.run` jsdoc (#14754) --- cli/dts/lib.deno.ns.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index ff1636d4d1..660ff22b45 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -2429,13 +2429,14 @@ declare namespace Deno { stdin?: "inherit" | "piped" | "null" | number; } - /** Spawns new subprocess. RunOptions must contain at a minimum the `opt.cmd`, + /** Spawns new subprocess. RunOptions must contain at a minimum the `opt.cmd`, * an array of program arguments, the first of which is the binary. * * ```ts * const p = Deno.run({ - * cmd: ["echo", "hello"], + * cmd: ["curl", "https://example.com"], * }); + * const status = await p.status(); * ``` * * Subprocess uses same working directory as parent process unless `opt.cwd`