0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

fix std/fs/walk example (#5030)

This commit is contained in:
Bert Belder 2020-05-01 18:37:32 +02:00 committed by GitHub
parent e57f0749e7
commit fa396c0a22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,9 +77,9 @@ export interface WalkEntry extends Deno.DirEntry {
* - match?: RegExp[];
* - skip?: RegExp[];
*
* for await (const { name, info } of walk(".")) {
* console.log(name);
* assert(info.isFile);
* for await (const entry of walk(".")) {
* console.log(entry.path);
* assert(entry.isFile);
* };
*/
export async function* walk(