summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefectivepixel <majidsajadi93@gmail.com>2021-04-02 02:23:31 +0430
committerGitHub <noreply@github.com>2021-04-02 08:53:31 +1100
commit2d7fdb0a1969128fc0d9a21a8dfaebada325f72d (patch)
treecddf77c17f1a95d1c236c8743b289646f5774476
parent6eace4de5c825c42ac4efd0d9b912c4911664a6a (diff)
chore(cli): fix futime and futimeSync code examples (#9953)
-rw-r--r--cli/dts/lib.deno.unstable.d.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts
index a71e5036d..3fb81c603 100644
--- a/cli/dts/lib.deno.unstable.d.ts
+++ b/cli/dts/lib.deno.unstable.d.ts
@@ -1131,7 +1131,7 @@ declare namespace Deno {
* seconds (UNIX epoch time) or as `Date` objects.
*
* ```ts
- * const file = Deno.openSync("file.txt", { create: true });
+ * const file = Deno.openSync("file.txt", { create: true, write: true });
* Deno.futimeSync(file.rid, 1556495550, new Date());
* ```
*/
@@ -1148,7 +1148,7 @@ declare namespace Deno {
* (UNIX epoch time) or as `Date` objects.
*
* ```ts
- * const file = await Deno.open("file.txt", { create: true });
+ * const file = await Deno.open("file.txt", { create: true, write: true });
* await Deno.futime(file.rid, 1556495550, new Date());
* ```
*/