Skip to content

Commit b462f14

Browse files
authored
Fix documentation typo for pathlib.Path.walk (GH-96301)
1 parent c3d591f commit b462f14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/pathlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ call fails (for example because the path doesn't exist).
10381038
# Delete everything reachable from the directory "top".
10391039
# CAUTION: This is dangerous! For example, if top == Path('/'),
10401040
# it could delete all of your files.
1041-
for root, dirs, files in top.walk(topdown=False):
1041+
for root, dirs, files in top.walk(top_down=False):
10421042
for name in files:
10431043
(root / name).unlink()
10441044
for name in dirs:

0 commit comments

Comments
 (0)