diff options
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r-- | cli/js/lib.deno.ns.d.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts index c40e42b8c..7145751c7 100644 --- a/cli/js/lib.deno.ns.d.ts +++ b/cli/js/lib.deno.ns.d.ts @@ -565,16 +565,16 @@ declare namespace Deno { * * const source = await Deno.open("my_file.txt"); * const buffer = new Deno.Buffer() - * const bytesCopied1 = await Deno.copy(Deno.stdout, source); - * const bytesCopied2 = await Deno.copy(buffer, source); + * const bytesCopied1 = await Deno.copy(source, Deno.stdout); + * const bytesCopied2 = await Deno.copy(source, buffer); * * Because `copy()` is defined to read from `src` until `EOF`, it does not * treat an `EOF` from `read()` as an error to be reported. * - * @param dst The destination to copy to * @param src The source to copy from + * @param dst The destination to copy to */ - export function copy(dst: Writer, src: Reader): Promise<number>; + export function copy(src: Reader, dst: Writer): Promise<number>; /** Turns a Reader, `r`, into an async iterator. * |