summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author迷渡 <justjavac@gmail.com>2021-05-21 22:00:16 +0800
committerBert Belder <bertbelder@gmail.com>2021-05-31 16:37:33 +0200
commit859a88ba441796fc9199257dd8d51709f8214faf (patch)
tree0f1683a29266aba4e776c0e47e37629191e60e36
parent195808a53879d73a4d79d0e2252783de64acea48 (diff)
fix(docs): rename read to readSync (#10732)
Signed-off-by: 迷渡 <justjavac@gmail.com>
-rw-r--r--cli/dts/lib.deno.ns.d.ts4
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