summaryrefslogtreecommitdiff
path: root/cli/js/lib.deno.ns.d.ts
diff options
context:
space:
mode:
author张超杰 <1098626505@qq.com>2020-04-22 04:11:52 +0800
committerGitHub <noreply@github.com>2020-04-21 16:11:52 -0400
commitb270d6c8d090669601465f8c9c94512d6c6a07d4 (patch)
treef3b1d2cdbccae54663334e2bc57adb473748923b /cli/js/lib.deno.ns.d.ts
parentcc1720132a9c875d377c559d301bccdda2fb71c1 (diff)
typo
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r--cli/js/lib.deno.ns.d.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts
index 119ba781e..ae0ddf333 100644
--- a/cli/js/lib.deno.ns.d.ts
+++ b/cli/js/lib.deno.ns.d.ts
@@ -1578,7 +1578,7 @@ declare namespace Deno {
*
* const encoder = new TextEncoder();
* const data = encoder.encode("Hello world\n");
- * Deno.writeFileSync("hello1.txt", data); //overwrite "hello.txt" or create it
+ * Deno.writeFileSync("hello1.txt", data); //overwrite "hello1.txt" or create it
* Deno.writeFileSync("hello2.txt", data, {create: false}); //only works if "hello2.txt" exists
* Deno.writeFileSync("hello3.txt", data, {mode: 0o777}); //set permissions on new file
* Deno.writeFileSync("hello4.txt", data, {append: true}); //add data to the end of the file
@@ -1597,7 +1597,7 @@ declare namespace Deno {
*
* const encoder = new TextEncoder();
* const data = encoder.encode("Hello world\n");
- * await Deno.writeFile("hello1.txt", data); //overwrite "hello.txt" or create it
+ * await Deno.writeFile("hello1.txt", data); //overwrite "hello1.txt" or create it
* await Deno.writeFile("hello2.txt", data, {create: false}); //only works if "hello2.txt" exists
* await Deno.writeFile("hello3.txt", data, {mode: 0o777}); //set permissions on new file
* await Deno.writeFile("hello4.txt", data, {append: true}); //add data to the end of the file