Skip to content

Commit 2927afe

Browse files
committed
Re-order drive example
1 parent 4ebe545 commit 2927afe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/os.path.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,14 +509,14 @@ the :mod:`glob` module.)
509509
name. The *root* may be empty, a forward slash, or a backward slash. For
510510
example::
511511

512+
>>> splitroot('Windows/notepad')
513+
('', '', 'Windows/notepad')
512514
>>> splitroot('C:/Users/Barney')
513515
('C:', '/', 'Users/Barney')
514516
>>> splitroot('//server/share/')
515517
('//server/share', '/', '')
516518
>>> splitroot('//?/Volume{12345678-1234-1234-1234-123456781234}/')
517519
('//?/Volume{12345678-1234-1234-1234-123456781234}', '/', '')
518-
>>> splitroot('Windows/notepad')
519-
('', '', 'Windows/notepad')
520520

521521
In all cases, ``drive + root + tail`` will be the same as *path*.
522522

0 commit comments

Comments
 (0)