mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
fix(docs): replace "e.g." with "i.e." in seek()
/seekSync()
comment (#18964)
Clarify calculation of number "9" in `seek()`/`seekSync()` comment of lib.deno.ns.d.ts by replacing "e.g." with "i.e."
This commit is contained in:
parent
246569f6d4
commit
632395da89
1 changed files with 4 additions and 4 deletions
8
cli/tsc/dts/lib.deno.ns.d.ts
vendored
8
cli/tsc/dts/lib.deno.ns.d.ts
vendored
|
@ -1832,7 +1832,7 @@ declare namespace Deno {
|
||||||
* // Seek 2 more bytes from the current position
|
* // Seek 2 more bytes from the current position
|
||||||
* console.log(await Deno.seek(file.rid, 2, Deno.SeekMode.Current)); // "8"
|
* console.log(await Deno.seek(file.rid, 2, Deno.SeekMode.Current)); // "8"
|
||||||
* // Seek backwards 2 bytes from the end of the file
|
* // Seek backwards 2 bytes from the end of the file
|
||||||
* console.log(await Deno.seek(file.rid, -2, Deno.SeekMode.End)); // "9" (e.g. 11-2)
|
* console.log(await Deno.seek(file.rid, -2, Deno.SeekMode.End)); // "9" (i.e. 11-2)
|
||||||
* file.close();
|
* file.close();
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
|
@ -1879,7 +1879,7 @@ declare namespace Deno {
|
||||||
* // Seek 2 more bytes from the current position
|
* // Seek 2 more bytes from the current position
|
||||||
* console.log(Deno.seekSync(file.rid, 2, Deno.SeekMode.Current)); // "8"
|
* console.log(Deno.seekSync(file.rid, 2, Deno.SeekMode.Current)); // "8"
|
||||||
* // Seek backwards 2 bytes from the end of the file
|
* // Seek backwards 2 bytes from the end of the file
|
||||||
* console.log(Deno.seekSync(file.rid, -2, Deno.SeekMode.End)); // "9" (e.g. 11-2)
|
* console.log(Deno.seekSync(file.rid, -2, Deno.SeekMode.End)); // "9" (i.e. 11-2)
|
||||||
* file.close();
|
* file.close();
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
|
@ -2200,7 +2200,7 @@ declare namespace Deno {
|
||||||
* // Seek 2 more bytes from the current position
|
* // Seek 2 more bytes from the current position
|
||||||
* console.log(await file.seek(2, Deno.SeekMode.Current)); // "8"
|
* console.log(await file.seek(2, Deno.SeekMode.Current)); // "8"
|
||||||
* // Seek backwards 2 bytes from the end of the file
|
* // Seek backwards 2 bytes from the end of the file
|
||||||
* console.log(await file.seek(-2, Deno.SeekMode.End)); // "9" (e.g. 11-2)
|
* console.log(await file.seek(-2, Deno.SeekMode.End)); // "9" (i.e. 11-2)
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
seek(offset: number | bigint, whence: SeekMode): Promise<number>;
|
seek(offset: number | bigint, whence: SeekMode): Promise<number>;
|
||||||
|
@ -2238,7 +2238,7 @@ declare namespace Deno {
|
||||||
* // Seek 2 more bytes from the current position
|
* // Seek 2 more bytes from the current position
|
||||||
* console.log(file.seekSync(2, Deno.SeekMode.Current)); // "8"
|
* console.log(file.seekSync(2, Deno.SeekMode.Current)); // "8"
|
||||||
* // Seek backwards 2 bytes from the end of the file
|
* // Seek backwards 2 bytes from the end of the file
|
||||||
* console.log(file.seekSync(-2, Deno.SeekMode.End)); // "9" (e.g. 11-2)
|
* console.log(file.seekSync(-2, Deno.SeekMode.End)); // "9" (i.e. 11-2)
|
||||||
* file.close();
|
* file.close();
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue