1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-24 08:09:08 -05:00

fix(declaration): change Deno.open example to not use Deno.close(rid) (#17218)

This commit is contained in:
David Sherret 2023-01-03 10:48:03 -05:00 committed by Bartek Iwańczuk
parent 1a61fe910c
commit 76f30a1878
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750

View file

@ -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