diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-04-25 00:09:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-25 00:09:14 +0200 |
commit | 0cb1bb98cc2de8dfe51b7adbe992666936146c90 (patch) | |
tree | a50b84ff268732e9db15895b443638ac86657007 /cli/js/io.ts | |
parent | 833539fcafa77f341b74498b37372a61c5f10418 (diff) |
BREAKING CHANGE: change order of args in Deno.copy() (#4885)
Diffstat (limited to 'cli/js/io.ts')
-rw-r--r-- | cli/js/io.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/js/io.ts b/cli/js/io.ts index d41914d34..50ea1216a 100644 --- a/cli/js/io.ts +++ b/cli/js/io.ts @@ -70,8 +70,7 @@ export interface ReadWriteCloser extends Reader, Writer, Closer {} // https://golang.org/pkg/io/#ReadWriteSeeker export interface ReadWriteSeeker extends Reader, Writer, Seeker {} -// https://golang.org/pkg/io/#Copy -export async function copy(dst: Writer, src: Reader): Promise<number> { +export async function copy(src: Reader, dst: Writer): Promise<number> { let n = 0; const b = new Uint8Array(DEFAULT_BUFFER_SIZE); let gotEOF = false; |