mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 21:50:00 -05:00
Fix examples in manual (#2396)
This commit is contained in:
parent
7d03a63ded
commit
1386b6ead5
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue