Skip to content

Commit

Permalink
GH-101228: Fix typo in docstring for read method of `_io.TextIOWrappe…
Browse files Browse the repository at this point in the history
…r` class (#101227)
  • Loading branch information
ppmfloss committed Feb 9, 2023
1 parent 272da55 commit f1f3af7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Modules/_io/textio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down

0 comments on commit f1f3af7

Please sign in to comment.