summaryrefslogtreecommitdiff
path: root/std/examples/curl.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/examples/curl.ts')
-rw-r--r--std/examples/curl.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/examples/curl.ts b/std/examples/curl.ts
index 65a687262..39e917591 100644
--- a/std/examples/curl.ts
+++ b/std/examples/curl.ts
@@ -1,4 +1,4 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-const url_ = Deno.args[1];
+const url_ = Deno.args[0];
const res = await fetch(url_);
await Deno.copy(Deno.stdout, res.body);