0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

fix(docs): rename read to readSync (#10732)

Signed-off-by: 迷渡 <justjavac@gmail.com>
This commit is contained in:
迷渡 2021-05-21 22:00:16 +08:00 committed by Bert Belder
parent 195808a538
commit 859a88ba44
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461

View file

@ -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