diff options
author | 木杉 <zhmushan@qq.com> | 2020-08-23 17:34:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-23 11:34:12 +0200 |
commit | fe59a423a6237b66ae048f2c130cbb8d968ad647 (patch) | |
tree | 743222b8807a99036f1ebfba7bcf937a40584c0b /std/fs | |
parent | b7ad544dd6f1d319ecf20aa410c98fb588724509 (diff) |
docs(fs/walk): fix code example (#7166)
Diffstat (limited to 'std/fs')
-rw-r--r-- | std/fs/walk.ts | 9 |
1 files changed, 5 insertions, 4 deletions
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, |