mirror of
https://github.com/denoland/deno.git
synced 2025-02-08 15:21:26 -05:00
chore(cli): fix futime and futimeSync code examples (#9953)
This commit is contained in:
parent
6eace4de5c
commit
2d7fdb0a19
1 changed files with 2 additions and 2 deletions
4
cli/dts/lib.deno.unstable.d.ts
vendored
4
cli/dts/lib.deno.unstable.d.ts
vendored
|
@ -1131,7 +1131,7 @@ declare namespace Deno {
|
||||||
* seconds (UNIX epoch time) or as `Date` objects.
|
* seconds (UNIX epoch time) or as `Date` objects.
|
||||||
*
|
*
|
||||||
* ```ts
|
* ```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());
|
* Deno.futimeSync(file.rid, 1556495550, new Date());
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
|
@ -1148,7 +1148,7 @@ declare namespace Deno {
|
||||||
* (UNIX epoch time) or as `Date` objects.
|
* (UNIX epoch time) or as `Date` objects.
|
||||||
*
|
*
|
||||||
* ```ts
|
* ```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());
|
* await Deno.futime(file.rid, 1556495550, new Date());
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue