summaryrefslogtreecommitdiff
path: root/std/io/readers_test.ts
diff options
context:
space:
mode:
authorAkshat Agarwal <humancalico@disroot.org>2020-04-27 01:56:02 +0530
committerGitHub <noreply@github.com>2020-04-26 16:26:02 -0400
commit4f9bb11444ba7236f28ef1e722100b485c185c7c (patch)
tree9b5b19bcaf1a440166c7ecf814a65fb343343628 /std/io/readers_test.ts
parent26dfd3c110ced12f2bd374de391c2c05e24290d8 (diff)
reorder copyN arguments to match Deno.copy (#4900)
Diffstat (limited to 'std/io/readers_test.ts')
-rw-r--r--std/io/readers_test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/io/readers_test.ts b/std/io/readers_test.ts
index 041fd78a8..05b63b892 100644
--- a/std/io/readers_test.ts
+++ b/std/io/readers_test.ts
@@ -30,7 +30,7 @@ test(async function ioStringReader(): Promise<void> {
test(async function ioMultiReader(): Promise<void> {
const r = new MultiReader(new StringReader("abc"), new StringReader("def"));
const w = new StringWriter();
- const n = await copyN(w, r, 4);
+ const n = await copyN(r, w, 4);
assertEquals(n, 4);
assertEquals(w.toString(), "abcd");
await copy(r, w);