From 0cb1bb98cc2de8dfe51b7adbe992666936146c90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 25 Apr 2020 00:09:14 +0200 Subject: BREAKING CHANGE: change order of args in Deno.copy() (#4885) --- std/examples/curl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'std/examples/curl.ts') diff --git a/std/examples/curl.ts b/std/examples/curl.ts index 44ee66125..a3e8b73db 100644 --- a/std/examples/curl.ts +++ b/std/examples/curl.ts @@ -3,7 +3,7 @@ const url_ = Deno.args[0]; const res = await fetch(url_); // TODO(ry) Re-enable streaming in this example. -// Originally we did: await Deno.copy(Deno.stdout, res.body); +// Originally we did: await Deno.copy(res.body, Deno.stdout); // But maybe more JS-y would be: res.pipeTo(Deno.stdout); const body = new Uint8Array(await res.arrayBuffer()); -- cgit v1.2.3