Skip to content

Commit d59b2d0

Browse files
authored
Fix a directive in the pathlib docs (GH-93030)
1 parent f51ed04 commit d59b2d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/pathlib.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ call fails (for example because the path doesn't exist).
10221022
Rename this file or directory to the given *target*, and return a new Path
10231023
instance pointing to *target*. On Unix, if *target* exists and is a file,
10241024
it will be replaced silently if the user has permission.
1025-
On Windows, if *target* exists, :data:`FileExistsError` will be raised.
1025+
On Windows, if *target* exists, :exc:`FileExistsError` will be raised.
10261026
*target* can be either a string or another path object::
10271027

10281028
>>> p = Path('foo')

0 commit comments

Comments
 (0)