From 1386b6ead586da15d0285941f2d980acc1d75eee Mon Sep 17 00:00:00 2001 From: champ Date: Thu, 23 May 2019 15:47:11 +0800 Subject: Fix examples in manual (#2396) --- website/manual.md | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3