summaryrefslogtreecommitdiffstats
path: root/Modules/_io
diff options
context:
space:
mode:
authorPartha P. Mukherjee <ppm.floss@gmail.com>2023-02-09 17:46:40 (GMT)
committerGitHub <noreply@github.com>2023-02-09 17:46:40 (GMT)
commitf1f3af7b8245e61a2e0abef03b2c6c5902ed7df8 (patch)
treef2ea9c5c8eb542015322242ee0d9bd7913d4cac6 /Modules/_io
parent272da55affe6f2b3b73ff5474e1246089517d051 (diff)
downloadcpython-f1f3af7b8245e61a2e0abef03b2c6c5902ed7df8.zip
cpython-f1f3af7b8245e61a2e0abef03b2c6c5902ed7df8.tar.gz
cpython-f1f3af7b8245e61a2e0abef03b2c6c5902ed7df8.tar.bz2
GH-101228: Fix typo in docstring for read method of `_io.TextIOWrapper` class (#101227)
Diffstat (limited to 'Modules/_io')
-rw-r--r--Modules/_io/textio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c
index 32ab8a4..ea2ea32 100644
--- a/Modules/_io/textio.c
+++ b/Modules/_io/textio.c
@@ -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 *