1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00

fix(manual): Deno.copy args order (#4999)

This commit is contained in:
Tomofumi Chiba 2020-04-30 20:01:16 +09:00 committed by GitHub
parent c569d958aa
commit 5f8c4d9b68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
}
```