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:
parent
c569d958aa
commit
5f8c4d9b68
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue