diff options
Diffstat (limited to 'Doc/library/pathlib.rst')
-rw-r--r-- | Doc/library/pathlib.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index b4ae293d14..7d4b41b1dd 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -718,7 +718,7 @@ call fails (for example because the path doesn't exist): .. method:: Path.glob(pattern) - Glob the given *pattern* in the directory represented by this path, + Glob the given relative *pattern* in the directory represented by this path, yielding all matching files (of any kind):: >>> sorted(Path('.').glob('*.py')) @@ -970,8 +970,8 @@ call fails (for example because the path doesn't exist): .. method:: Path.rglob(pattern) - This is like calling :meth:`Path.glob` with "``**``" added in front of the - given *pattern*:: + This is like calling :func:`Path.glob` with "``**/``" added in front of the + given relative *pattern*:: >>> sorted(Path().rglob("*.py")) [PosixPath('build/lib/pathlib.py'), |