Skip to content

Commit 94e2dbb

Browse files
author
Kenneth Reitz
committed
Merge pull request realpython#104 from leetrout/b80f05a16e07
Corrected enumerate typo in style
2 parents a26f75e + b80f05a commit 94e2dbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/writing/style.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ keep a count of your place in the list.
248248

249249
.. code-block:: python
250250
251-
for i, item in a:
251+
for i, item in enumerate(a):
252252
print i + ", " + item
253253
# prints
254254
# 0, 3

0 commit comments

Comments
 (0)