summaryrefslogtreecommitdiff
path: root/std/examples/curl.ts
diff options
context:
space:
mode:
authorAndy Hayden <andyhayden1@gmail.com>2019-10-28 12:58:35 -0700
committerRy Dahl <ry@tinyclouds.org>2019-10-28 15:58:35 -0400
commitf484776384ad7df35ab7626b7a673f3902a6cfaa (patch)
treecb74f31550dc666ec75f5a2f95d61dc69931cb16 /std/examples/curl.ts
parent71efe6f2c530d1cb9e8a2679f5778e2c034a9d0d (diff)
Use top-level for-await in various places (#3217)
Diffstat (limited to 'std/examples/curl.ts')
-rw-r--r--std/examples/curl.ts4
1 files changed, 2 insertions, 2 deletions
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);