summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--std/examples/README.md2
-rw-r--r--std/examples/curl.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/std/examples/README.md b/std/examples/README.md
index 14f101244..e2f6b2a08 100644
--- a/std/examples/README.md
+++ b/std/examples/README.md
@@ -40,7 +40,7 @@ echo example.json | catj -
### curl - print the contents of a url to standard output
```shell
-deno --allow-net=deno.land https://deno.land/std/examples/curl.ts https://deno.land/
+deno --allow-net=deno.land https://deno.land/std/examples/curl.ts -- https://deno.land/
```
### gist - easily create and upload Gists
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);