Skip to content

Commit

Permalink
fix curl.ts (denoland#3677)
Browse files Browse the repository at this point in the history
  • Loading branch information
chibat authored and ry committed Jan 15, 2020
1 parent 702ff42 commit 8a352f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion std/examples/README.md
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 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);

0 comments on commit 8a352f7

Please sign in to comment.