]> granicus.if.org Git - python/commitdiff
Close #18912: Fix indentation in docstring
authorEli Bendersky <eliben@gmail.com>
Tue, 3 Sep 2013 13:41:58 +0000 (06:41 -0700)
committerEli Bendersky <eliben@gmail.com>
Tue, 3 Sep 2013 13:41:58 +0000 (06:41 -0700)
Contributed by Jeroen Van Goey

Modules/itertoolsmodule.c

index ea822913662bf241f41ad2862857dfea61a54382..c0456b839f7280abc0dc107f6aa4277f91c51330 100644 (file)
@@ -3426,10 +3426,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)