summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/pathlib.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst
index 0929ee2..ec604f6 100644
--- a/Doc/library/pathlib.rst
+++ b/Doc/library/pathlib.rst
@@ -915,7 +915,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