docs: clarify what patterns Path.glob accepts (GH-25486)
Automerge-Triggered-By: GH:Yhg1s
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst
index f15fed3..122642a 100644
--- a/Doc/library/pathlib.rst
+++ b/Doc/library/pathlib.rst
@@ -798,8 +798,9 @@
>>> sorted(Path('.').glob('*/*.py'))
[PosixPath('docs/conf.py')]
- The "``**``" pattern means "this directory and all subdirectories,
- recursively". In other words, it enables recursive globbing::
+ Patterns are the same as for :mod:`fnmatch`, with the addition of "``**``"
+ which means "this directory and all subdirectories, recursively". In other
+ words, it enables recursive globbing::
>>> sorted(Path('.').glob('**/*.py'))
[PosixPath('build/lib/pathlib.py'),