]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-101228: Fix typo in docstring for read method of `_io.TextIOWrapper` class (#101227)
authorPartha P. Mukherjee <ppm.floss@gmail.com>
Thu, 9 Feb 2023 17:46:40 +0000 (12:46 -0500)
committerGitHub <noreply@github.com>
Thu, 9 Feb 2023 17:46:40 +0000 (23:16 +0530)
Modules/_io/textio.c

index 32ab8a44c62151390589646acce967231dd957d1..ea2ea32c336954df3eb8ceb13a60380b6bc03ecb 100644 (file)
@@ -56,10 +56,10 @@ textiobase_detach(PyObject *self, PyObject *Py_UNUSED(ignored))
 }
 
 PyDoc_STRVAR(textiobase_read_doc,
-    "Read at most n characters from stream.\n"
+    "Read at most size characters from stream.\n"
     "\n"
-    "Read from underlying buffer until we have n characters or we hit EOF.\n"
-    "If n is negative or omitted, read until EOF.\n"
+    "Read from underlying buffer until we have size characters or we hit EOF.\n"
+    "If size is negative or omitted, read until EOF.\n"
     );
 
 static PyObject *