summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/os.path.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst
index 041277c..a3fe73c 100644
--- a/Doc/library/os.path.rst
+++ b/Doc/library/os.path.rst
@@ -92,11 +92,11 @@ the :mod:`glob` module.)
::
- >>> os.path.commonprefix(['/dir1/dir2', '/dir3/dir4'])
- '/dir'
+ >>> os.path.commonprefix(['/usr/lib', '/usr/local/lib'])
+ '/usr/l'
- >>> os.path.commonpath(['/dir1/dir2', '/dir3/dir4'])
- '/'
+ >>> os.path.commonpath(['/usr/lib', '/usr/local/lib'])
+ '/usr'
.. function:: dirname(path)