]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #18912: Fix indentation in docstring
authorEli Bendersky <eliben@gmail.com>
Tue, 3 Sep 2013 13:37:19 +0000 (06:37 -0700)
committerEli Bendersky <eliben@gmail.com>
Tue, 3 Sep 2013 13:37:19 +0000 (06:37 -0700)
Contributed by Jeroen Van Goey

Modules/itertoolsmodule.c

index bd10ee416adb2cbb2f350c1eac870fd5a24d2be6..c751184cf92487d65fa935efd82b9ce4e5b74dd2 100644 (file)
@@ -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)