diff options
author | Ry Dahl <ry@tinyclouds.org> | 2019-11-19 01:07:13 -0500 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2019-11-18 22:07:13 -0800 |
commit | e6fdb2628fdeeae0c7b06c25214b2edba96364dd (patch) | |
tree | b42eed4df1ab0f366194934898eed0e11846f05f /std/manual.md | |
parent | 00aa409ff228a8fe6c73677012538844ce96a3ec (diff) |
chore: improve examples (#3377)
Diffstat (limited to 'std/manual.md')
-rw-r--r-- | std/manual.md | 8 |
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 |