summaryrefslogtreecommitdiff
path: root/docs/contributing
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2020-06-12 20:23:38 +0100
committerGitHub <noreply@github.com>2020-06-12 15:23:38 -0400
commit1fff6f55c3ba98a10018c6d374795e612061e9b6 (patch)
tree12074b6d44736b11513d857e437f9e30a6bf65a4 /docs/contributing
parent26bf56afdaf16634ffbaa23684faf3a44cc10f62 (diff)
refactor: Don't destructure the Deno namespace (#6268)
Diffstat (limited to 'docs/contributing')
-rw-r--r--docs/contributing/architecture.md7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/contributing/architecture.md b/docs/contributing/architecture.md
index 511bb52e0..8600b5eae 100644
--- a/docs/contributing/architecture.md
+++ b/docs/contributing/architecture.md
@@ -20,11 +20,10 @@ would be good to be able to query the system for how many open resources there
are.
```ts
-const { resources, close } = Deno;
-console.log(resources());
+console.log(Deno.resources());
// { 0: "stdin", 1: "stdout", 2: "stderr" }
-close(0);
-console.log(resources());
+Deno.close(0);
+console.log(Deno.resources());
// { 1: "stdout", 2: "stderr" }
```