diff options
author | 迷渡 <justjavac@gmail.com> | 2021-05-21 22:00:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-21 10:00:16 -0400 |
commit | b88fcef26be6f45472c2c6891212deae3192897c (patch) | |
tree | 77109a97750d6057fcec8a1b2b7d1f9f01a28c7f | |
parent | b3f2502b32f1a5c9583248012230d23099f9b337 (diff) |
fix(docs): rename read to readSync (#10732)
Signed-off-by: 迷渡 <justjavac@gmail.com>
-rw-r--r-- | cli/dts/lib.deno.ns.d.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index c56371a23..58782e1b0 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -322,9 +322,9 @@ declare namespace Deno { export interface ReaderSync { /** Reads up to `p.byteLength` bytes into `p`. It resolves to the number * of bytes read (`0` < `n` <= `p.byteLength`) and rejects if any error - * encountered. Even if `read()` returns `n` < `p.byteLength`, it may use + * encountered. Even if `readSync()` returns `n` < `p.byteLength`, it may use * all of `p` as scratch space during the call. If some data is available - * but not `p.byteLength` bytes, `read()` conventionally returns what is + * but not `p.byteLength` bytes, `readSync()` conventionally returns what is * available instead of waiting for more. * * When `readSync()` encounters end-of-file condition, it returns EOF |