mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 23:34:47 -05:00
docs(cli/ftruncateSync): use openSync in example (#10485)
This commit is contained in:
parent
d21380728f
commit
17118c41e4
1 changed files with 1 additions and 1 deletions
2
cli/dts/lib.deno.ns.d.ts
vendored
2
cli/dts/lib.deno.ns.d.ts
vendored
|
@ -2363,7 +2363,7 @@ declare namespace Deno {
|
|||
*
|
||||
* ```ts
|
||||
* // truncate the entire file
|
||||
* const file = Deno.open("my_file.txt", { read: true, write: true, truncate: true, create: true });
|
||||
* const file = Deno.openSync("my_file.txt", { read: true, write: true, truncate: true, create: true });
|
||||
* Deno.ftruncateSync(file.rid);
|
||||
*
|
||||
* // truncate part of the file
|
||||
|
|
Loading…
Reference in a new issue