1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00

docd: Replace obsolete Deno.homeDir() with Deno.dir('home') (#5708)

This commit is contained in:
Bhumij Gupta 2020-05-21 17:36:42 +05:30 committed by GitHub
parent aea5b12bae
commit 88e8c32652
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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