summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjersou <jertux@gmail.com>2020-06-08 23:09:38 +0200
committerGitHub <noreply@github.com>2020-06-08 17:09:38 -0400
commit1f4520d2bd6f7ba10a65aaa3331d67799f9e5991 (patch)
treeca0ffa033f7da883b765df195e44dcf3e2cf9da4
parent0bf952bb49e79ad2bab312a4d4daa3dd51344597 (diff)
doc(std/fs): fix sync walk example (#6174)
The example doesn't compile : Property 'filename' does not exist on type 'WalkEntry'. The property has been renamed : fileInfo.filename → fileInfo.name
-rw-r--r--std/fs/README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/fs/README.md b/std/fs/README.md
index 99cbc076a..e0f0d85ce 100644
--- a/std/fs/README.md
+++ b/std/fs/README.md
@@ -154,8 +154,8 @@ Iterate all files in a directory recursively.
```ts
import { walk, walkSync } from "https://deno.land/std/fs/mod.ts";
-for (const fileInfo of walkSync(".")) {
- console.log(fileInfo.filename);
+for (const entry of walkSync(".")) {
+ console.log(entry.path);
}
// Async