1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-10 16:11:13 -05:00

docs(fs/walk): fix code example (#7166)

This commit is contained in:
木杉 2020-08-23 17:34:12 +08:00 committed by GitHub
parent b7ad544dd6
commit fe59a423a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,