Skip to content

Commit f1f3af7

Browse files
authored
GH-101228: Fix typo in docstring for read method of _io.TextIOWrapper class (#101227)
1 parent 272da55 commit f1f3af7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modules/_io/textio.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ textiobase_detach(PyObject *self, PyObject *Py_UNUSED(ignored))
5656
}
5757

5858
PyDoc_STRVAR(textiobase_read_doc,
59-
"Read at most n characters from stream.\n"
59+
"Read at most size characters from stream.\n"
6060
"\n"
61-
"Read from underlying buffer until we have n characters or we hit EOF.\n"
62-
"If n is negative or omitted, read until EOF.\n"
61+
"Read from underlying buffer until we have size characters or we hit EOF.\n"
62+
"If size is negative or omitted, read until EOF.\n"
6363
);
6464

6565
static PyObject *

0 commit comments

Comments
 (0)