mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
Change from let to const (#6181)
This commit is contained in:
parent
50a70f4ece
commit
5e01e14f08
1 changed files with 2 additions and 2 deletions
|
@ -5,8 +5,8 @@ is opened, and printed to stdout.
|
|||
|
||||
```ts
|
||||
for (let i = 0; i < Deno.args.length; i++) {
|
||||
let filename = Deno.args[i];
|
||||
let file = await Deno.open(filename);
|
||||
const filename = Deno.args[i];
|
||||
const file = await Deno.open(filename);
|
||||
await Deno.copy(file, Deno.stdout);
|
||||
file.close();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue