From fe59a423a6237b66ae048f2c130cbb8d968ad647 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E6=9D=89?= Date: Sun, 23 Aug 2020 17:34:12 +0800 Subject: docs(fs/walk): fix code example (#7166) --- std/fs/walk.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'std') diff --git a/std/fs/walk.ts b/std/fs/walk.ts index 8f2196833..06d889b0e 100644 --- a/std/fs/walk.ts +++ b/std/fs/walk.ts @@ -76,10 +76,11 @@ export interface WalkEntry extends Deno.DirEntry { * - match?: RegExp[]; * - skip?: RegExp[]; * - * for await (const entry of walk(".")) { - * console.log(entry.path); - * assert(entry.isFile); - * }; + * + * for await (const entry of walk(".")) { + * console.log(entry.path); + * assert(entry.isFile); + * } */ export async function* walk( root: string, -- cgit v1.2.3