summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2020-05-01 18:37:32 +0200
committerGitHub <noreply@github.com>2020-05-01 12:37:32 -0400
commitfa396c0a22f1de4a55ca3ad918f1ba4566d2575b (patch)
tree9ba4d719b9a3543dd8f988e4295aacd36c63bfc1
parente57f0749e7129d0ee57f5b56dfed217ba0a52b94 (diff)
fix std/fs/walk example (#5030)
-rw-r--r--std/fs/walk.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/std/fs/walk.ts b/std/fs/walk.ts
index d01f35167..ccd5097a4 100644
--- a/std/fs/walk.ts
+++ b/std/fs/walk.ts
@@ -77,9 +77,9 @@ export interface WalkEntry extends Deno.DirEntry {
* - match?: RegExp[];
* - skip?: RegExp[];
*
- * for await (const { name, info } of walk(".")) {
- * console.log(name);
- * assert(info.isFile);
+ * for await (const entry of walk(".")) {
+ * console.log(entry.path);
+ * assert(entry.isFile);
* };
*/
export async function* walk(