From fa396c0a22f1de4a55ca3ad918f1ba4566d2575b Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Fri, 1 May 2020 18:37:32 +0200 Subject: fix std/fs/walk example (#5030) --- std/fs/walk.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'std/fs') 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( -- cgit v1.2.3