]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix a directive in the `pathlib` docs (GH-93030)
authorBrett Cannon <brett@python.org>
Fri, 20 May 2022 22:52:38 +0000 (15:52 -0700)
committerGitHub <noreply@github.com>
Fri, 20 May 2022 22:52:38 +0000 (15:52 -0700)
Doc/library/pathlib.rst

index cda2cc83225e07278f0032faf58c0f671da0c3cd..e16097d00f60f359d584c28a686c744f83d9c7bf 100644 (file)
@@ -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')