summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.ns.d.ts
diff options
context:
space:
mode:
authorvwkd <33468089+vwkd@users.noreply.github.com>2020-10-19 15:06:04 +0200
committerGitHub <noreply@github.com>2020-10-19 15:06:04 +0200
commite432db70e9b5628990517baa689b74721f6da8e1 (patch)
treecbda71ce7dc258ad43c658aa99e452f3b26b8326 /cli/dts/lib.deno.ns.d.ts
parente58763737e82db481a05e34ad883b1cd286dd05d (diff)
docs: readTextFile / readTextFileSync throw when reading directory (#7999)
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-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 0b9876865..d33eb8a0b 100644
--- a/cli/dts/lib.deno.ns.d.ts
+++ b/cli/dts/lib.deno.ns.d.ts
@@ -1226,7 +1226,7 @@ declare namespace Deno {
export function rename(oldpath: string, newpath: string): Promise<void>;
/** Synchronously reads and returns the entire contents of a file as utf8
- * encoded string. Reading a directory returns an empty string.
+ * encoded string. Reading a directory throws an error.
*
* ```ts
* const data = Deno.readTextFileSync("hello.txt");
@@ -1237,7 +1237,7 @@ declare namespace Deno {
export function readTextFileSync(path: string | URL): string;
/** Asynchronously reads and returns the entire contents of a file as utf8
- * encoded string. Reading a directory returns an empty string.
+ * encoded string. Reading a directory throws an error.
*
* ```ts
* const data = await Deno.readTextFile("hello.txt");