Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit abfb43d

Browse files
committed
bump deno@v1.0.0
Signed-off-by: 迷渡 <justjavac@gmail.com>
1 parent 56a8518 commit abfb43d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/lib.deno.d.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,9 +1031,8 @@ declare namespace Deno {
10311031
/** Asynchronously reads and returns the entire contents of a file as a utf8
10321032
* encoded string. Reading a directory returns an empty data array.
10331033
*
1034-
* const decoder = new TextDecoder("utf-8");
1035-
* const data = Deno.readFileSync("hello.txt");
1036-
* console.log(decoder.decode(data));
1034+
* const data = await Deno.readTextFile("hello.txt");
1035+
* console.log(data);
10371036
*
10381037
* Requires `allow-read` permission. */
10391038
export function readTextFile(path: string): Promise<string>;

0 commit comments

Comments
 (0)