mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 21:50:00 -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[];
|
* - match?: RegExp[];
|
||||||
* - skip?: RegExp[];
|
* - skip?: RegExp[];
|
||||||
*
|
*
|
||||||
* for await (const entry of walk(".")) {
|
*
|
||||||
* console.log(entry.path);
|
* for await (const entry of walk(".")) {
|
||||||
* assert(entry.isFile);
|
* console.log(entry.path);
|
||||||
* };
|
* assert(entry.isFile);
|
||||||
|
* }
|
||||||
*/
|
*/
|
||||||
export async function* walk(
|
export async function* walk(
|
||||||
root: string,
|
root: string,
|
||||||
|
|
Loading…
Add table
Reference in a new issue