mirror of
https://github.com/denoland/deno.git
synced 2025-01-11 00:21:05 -05:00
docs(fs/walk): fix code example (#7166)
This commit is contained in:
parent
b7ad544dd6
commit
fe59a423a6
1 changed files with 5 additions and 4 deletions
|
@ -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);
|
||||
* };
|
||||
* }
|
||||
*/
|
||||
export async function* walk(
|
||||
root: string,
|
||||
|
|
Loading…
Reference in a new issue