From d9ed5e905c25bd415b5e65649a44e0a1580e5ed1 Mon Sep 17 00:00:00 2001 From: Geert-Jan Zwiers Date: Tue, 31 May 2022 01:44:16 +0200 Subject: 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(-) (limited to 'cli/dts/lib.deno.ns.d.ts') diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index ff1636d4d..660ff22b4 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` -- cgit v1.2.3