From f484776384ad7df35ab7626b7a673f3902a6cfaa Mon Sep 17 00:00:00 2001 From: Andy Hayden Date: Mon, 28 Oct 2019 12:58:35 -0700 Subject: Use top-level for-await in various places (#3217) --- std/examples/curl.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'std/examples/curl.ts') diff --git a/std/examples/curl.ts b/std/examples/curl.ts index e020016f8..b62e58b27 100644 --- a/std/examples/curl.ts +++ b/std/examples/curl.ts @@ -1,4 +1,4 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -const url = Deno.args[1]; -const res = await fetch(url); +const url_ = Deno.args[1]; +const res = await fetch(url_); await Deno.copy(Deno.stdout, res.body); -- cgit v1.2.3