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

docs(cli): update description of readFile and readFileSync (#28079)

This commit is contained in:
Yoshiya Hinosawa 2025-02-12 17:56:12 +09:00 committed by GitHub
parent 795ecfdca6
commit 3ff9ca2533
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2905,7 +2905,7 @@ declare namespace Deno {
/** Reads and resolves to the entire contents of a file as an array of bytes.
* `TextDecoder` can be used to transform the bytes to string if required.
* Reading a directory returns an empty data array.
* Rejects with an error when reading a directory.
*
* ```ts
* const decoder = new TextDecoder("utf-8");
@ -2925,7 +2925,7 @@ declare namespace Deno {
/** Synchronously reads and returns the entire contents of a file as an array
* of bytes. `TextDecoder` can be used to transform the bytes to string if
* required. Reading a directory returns an empty data array.
* required. Throws an error when reading a directory.
*
* ```ts
* const decoder = new TextDecoder("utf-8");