1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00

chore(cli): fix futime and futimeSync code examples (#9953)

This commit is contained in:
defectivepixel 2021-04-02 02:23:31 +04:30 committed by Kitson Kelly
parent 5562b190d6
commit 1f448e6100
No known key found for this signature in database
GPG key ID: 2D87CFF11B51960A

View file

@ -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());
* ```
*/