1
0
Fork 0
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:
David Sherret 2023-01-03 10:48:03 -05:00 committed by GitHub
parent 8a9f5c152e
commit 421ec90a8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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