summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-01-03 10:48:03 -0500
committerGitHub <noreply@github.com>2023-01-03 10:48:03 -0500
commit421ec90a8e8c2922ada79e8566a7440a5a2ed2b9 (patch)
tree52a17c63394c58d04e5a576e8dbb74ac7aee46c5
parent8a9f5c152e145122b2f320a85c107c47264b2f48 (diff)
fix(declaration): change `Deno.open` example to not use `Deno.close(rid)` (#17218)
-rw-r--r--cli/tsc/dts/lib.deno.ns.d.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts
index f182a63d8..ab53a064e 100644
--- a/cli/tsc/dts/lib.deno.ns.d.ts
+++ b/cli/tsc/dts/lib.deno.ns.d.ts
@@ -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