diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 7b3c9ecc2f092d..0377027da56fac 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -897,7 +897,8 @@ call fails (for example because the path doesn't exist): >>> p.read_text() 'Text file contents' - The optional parameters have the same meaning as in :func:`open`. + The file is opened and then closed. The optional parameters have the same + meaning as in :func:`open`. .. versionadded:: 3.5