]> 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:14:30 +0000 (20:14 -0700)
committerGitHub <noreply@github.com>
Wed, 23 Mar 2022 03:14:30 +0000 (20:14 -0700)
(cherry picked from commit 795b365e8a6dfbeaa75780ed7807f8116f4537ca)

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

index b6507eb4d6fa2c1e9e581f8059ee3ebb3a68ec9f..fedea34bcd0c4b9dc0e1f08ce41412a2b1523c21 100644 (file)
@@ -914,7 +914,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)