summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--website/manual.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/website/manual.md b/website/manual.md
index 9ef767a74..5a25fc8ef 100644
--- a/website/manual.md
+++ b/website/manual.md
@@ -326,6 +326,7 @@ const { permissions, revokePermission, open, remove } = Deno;
revokePermission("write");
// use the log file
+ const encoder = new TextEncoder();
await log.write(encoder.encode("hello\n"));
// this will prompt for the write permission or fail.
@@ -428,6 +429,7 @@ async function main() {
const p = Deno.run({
args: [
"deno",
+ "run",
"--allow-read",
"https://deno.land/std/examples/cat.ts",
...fileNames