mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
fix(declaration): change Deno.open
example to not use Deno.close(rid)
(#17218)
This commit is contained in:
parent
8a9f5c152e
commit
421ec90a8e
1 changed files with 2 additions and 2 deletions
4
cli/tsc/dts/lib.deno.ns.d.ts
vendored
4
cli/tsc/dts/lib.deno.ns.d.ts
vendored
|
@ -1572,7 +1572,7 @@ declare namespace Deno {
|
|||
* ```ts
|
||||
* const file = await Deno.open("/foo/bar.txt", { read: true, write: true });
|
||||
* // Do work with file
|
||||
* Deno.close(file.rid);
|
||||
* file.close();
|
||||
* ```
|
||||
*
|
||||
* Requires `allow-read` and/or `allow-write` permissions depending on
|
||||
|
@ -1594,7 +1594,7 @@ declare namespace Deno {
|
|||
* ```ts
|
||||
* const file = Deno.openSync("/foo/bar.txt", { read: true, write: true });
|
||||
* // Do work with file
|
||||
* Deno.close(file.rid);
|
||||
* file.close();
|
||||
* ```
|
||||
*
|
||||
* Requires `allow-read` and/or `allow-write` permissions depending on
|
||||
|
|
Loading…
Reference in a new issue