diff options
author | Brett Cannon <brett@python.org> | 2022-05-20 22:52:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-20 22:52:38 (GMT) |
commit | d59b2d0441d68c63e6dbe2ec76471b54a859bcda (patch) | |
tree | 00de1992ec8145ba76f57cccaff4809bae4a223f /Doc/library | |
parent | f51ed04c663417f88e10eeb21dad23250358bafa (diff) | |
download | cpython-d59b2d0441d68c63e6dbe2ec76471b54a859bcda.zip cpython-d59b2d0441d68c63e6dbe2ec76471b54a859bcda.tar.gz cpython-d59b2d0441d68c63e6dbe2ec76471b54a859bcda.tar.bz2 |
Fix a directive in the `pathlib` docs (GH-93030)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/pathlib.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index cda2cc8..e16097d 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -1022,7 +1022,7 @@ call fails (for example because the path doesn't exist). Rename this file or directory to the given *target*, and return a new Path instance pointing to *target*. On Unix, if *target* exists and is a file, it will be replaced silently if the user has permission. - On Windows, if *target* exists, :data:`FileExistsError` will be raised. + On Windows, if *target* exists, :exc:`FileExistsError` will be raised. *target* can be either a string or another path object:: >>> p = Path('foo') |