diff options
author | Tomofumi Chiba <tomofumi.chiba@gmail.com> | 2020-01-15 23:05:22 +0900 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2020-01-15 08:05:22 -0600 |
commit | 8a352f7260da2df17c0267d581183b07735d3a2b (patch) | |
tree | 7eba0c0d21ea1abb4f0ede876195170690360d41 | |
parent | 702ff4283f06c83e5b68affdf39e7000eb91054c (diff) |
fix curl.ts (#3677)
-rw-r--r-- | std/examples/README.md | 2 | ||||
-rw-r--r-- | std/examples/curl.ts | 2 |
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); |