summaryrefslogtreecommitdiff
path: root/std/manual.md
diff options
context:
space:
mode:
authorTomofumi Chiba <tomofumi.chiba@gmail.com>2020-04-30 20:01:16 +0900
committerGitHub <noreply@github.com>2020-04-30 13:01:16 +0200
commit5f8c4d9b686efc10abe2abb7ba453020ecfe4814 (patch)
treefb43b27ae662354d654eeaf5b08d6214641f3aa0 /std/manual.md
parentc569d958aaf49db70856a60d75954c83ab8bd95a (diff)
fix(manual): Deno.copy args order (#4999)
Diffstat (limited to 'std/manual.md')
-rw-r--r--std/manual.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/manual.md b/std/manual.md
index bd64cb409..d1cd56e79 100644
--- a/std/manual.md
+++ b/std/manual.md
@@ -200,7 +200,7 @@ is opened, and printed to stdout.
for (let i = 0; i < Deno.args.length; i++) {
let filename = Deno.args[i];
let file = await Deno.open(filename);
- await Deno.copy(Deno.stdout, file);
+ await Deno.copy(file, Deno.stdout);
file.close();
}
```