diff options
Diffstat (limited to 'std')
-rw-r--r-- | std/manual.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/manual.md b/std/manual.md index e80a56872..70610e19f 100644 --- a/std/manual.md +++ b/std/manual.md @@ -470,8 +470,8 @@ The above for-await loop exits after 5 seconds when sig.dispose() is called. To poll for file system events: ```ts -const iter = Deno.fsEvents("/"); -for await (const event of iter) { +const watcher = Deno.watchFs("/"); +for await (const event of watcher) { console.log(">>>> event", event); // { kind: "create", paths: [ "/foo.txt" ] } } |