From 9ded17d722b8da124987cdf16976589a46f2d3f5 Mon Sep 17 00:00:00 2001 From: Marcos Casagrande Date: Thu, 30 Apr 2020 22:39:25 +0200 Subject: BREAKING: reorder std/io/utils copyBytes arguments (#5022) --- std/io/bufio_test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'std/io/bufio_test.ts') diff --git a/std/io/bufio_test.ts b/std/io/bufio_test.ts index a4f03338d..17cc873fd 100644 --- a/std/io/bufio_test.ts +++ b/std/io/bufio_test.ts @@ -201,7 +201,7 @@ class TestReader implements Reader { if (nread === 0) { return Promise.resolve(null); } - copyBytes(buf as Uint8Array, this.data); + copyBytes(this.data, buf as Uint8Array); this.data = this.data.subarray(nread); return Promise.resolve(nread); } -- cgit v1.2.3