Issue #18912: Fix indentation in docstring
Contributed by Jeroen Van Goey
This commit is contained in:
parent
a0f482a7ff
commit
c554f725a0
|
@ -3978,10 +3978,10 @@ PyDoc_STRVAR(count_doc,
|
|||
Return a count object whose .__next__() method returns consecutive values.\n\
|
||||
Equivalent to:\n\n\
|
||||
def count(firstval=0, step=1):\n\
|
||||
x = firstval\n\
|
||||
while 1:\n\
|
||||
yield x\n\
|
||||
x += step\n");
|
||||
x = firstval\n\
|
||||
while 1:\n\
|
||||
yield x\n\
|
||||
x += step\n");
|
||||
|
||||
static PyTypeObject count_type = {
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
|
|
Loading…
Reference in New Issue