Skip to content

Commit

Permalink
docs: update permissions example (#5809)
Browse files Browse the repository at this point in the history
  • Loading branch information
bolatovumar authored May 24, 2020
1 parent c3c16f0 commit 2bbe475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/examples/permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if (status.state !== "granted") {
throw new Error("need write permission");
}

const log = await Deno.open("request.log", "a+");
const log = await Deno.open("request.log", { write: true, append: true });

// revoke some permissions
await Deno.permissions.revoke({ name: "read" });
Expand Down

0 comments on commit 2bbe475

Please sign in to comment.