summaryrefslogtreecommitdiff
path: root/std/manual.md
diff options
context:
space:
mode:
Diffstat (limited to 'std/manual.md')
-rw-r--r--std/manual.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/std/manual.md b/std/manual.md
index affcfd395..d2f5f348c 100644
--- a/std/manual.md
+++ b/std/manual.md
@@ -1072,10 +1072,10 @@ are.
```ts
const { resources, close } = Deno;
console.log(resources());
-// output like: { 0: "stdin", 1: "stdout", 2: "stderr", 3: "repl" }
-
-// close resource by rid
-close(3);
+// { 0: "stdin", 1: "stdout", 2: "stderr" }
+close(0);
+console.log(resources());
+// { "stdout", 2: "stderr" }
```
#### Metrics