1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00

docs: Remove a deprecated function from docstring for Deno.permissions (#8729)

This commit is contained in:
Andrew Mitchell 2020-12-12 07:15:50 -05:00 committed by GitHub
parent 31935c6b8d
commit c05615d670
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1143,7 +1143,7 @@ declare namespace Deno {
* ```ts * ```ts
* const status = await Deno.permissions.request({ name: "env" }); * const status = await Deno.permissions.request({ name: "env" });
* if (status.state === "granted") { * if (status.state === "granted") {
* console.log(Deno.dir("home")); * console.log("'env' permission is granted.");
* } else { * } else {
* console.log("'env' permission is denied."); * console.log("'env' permission is denied.");
* } * }