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:
parent
e57f0749e7
commit
fa396c0a22
1 changed files with 3 additions and 3 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue