]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in Path.iterdir docs (GH-31822)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 23 Mar 2022 03:16:18 +0000 (20:16 -0700)
committerGitHub <noreply@github.com>
Wed, 23 Mar 2022 03:16:18 +0000 (20:16 -0700)
(cherry picked from commit 795b365e8a6dfbeaa75780ed7807f8116f4537ca)

Co-authored-by: Matt Williams <matt@milliams.com>
Doc/library/pathlib.rst

index 88e8756cf84a53a9af5aad903f44de0a714d55af..3a41b5454b86448b2c12d3bb44f275698167890d 100644 (file)
@@ -900,7 +900,7 @@ call fails (for example because the path doesn't exist).
 
    The children are yielded in arbitrary order, and the special entries
    ``'.'`` and ``'..'`` are not included.  If a file is removed from or added
-   to the directory after creating the iterator, whether an path object for
+   to the directory after creating the iterator, whether a path object for
    that file be included is unspecified.
 
 .. method:: Path.lchmod(mode)