bpo-34319: Clarify file handler closure in pathlib.read_text (GH-8645)


Patch by Terry Jan Reedy.
(cherry picked from commit 5b2657fb8c5aaa98e5748e1c325c74b97ea12fd1)

Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
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 @@
       >>> 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