mirror of
https://github.com/denoland/deno.git
synced 2025-01-10 16:11:13 -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
|
* ```ts
|
||||||
* // truncate the entire file
|
* // 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);
|
* Deno.ftruncateSync(file.rid);
|
||||||
*
|
*
|
||||||
* // truncate part of the file
|
* // truncate part of the file
|
||||||
|
|
Loading…
Reference in a new issue