Skip to content

Commit

Permalink
Added missing call to enumerate.
Browse files Browse the repository at this point in the history
  • Loading branch information
leetrout committed Mar 25, 2012
1 parent a26f75e commit b80f05a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/writing/style.rst
Expand Up @@ -248,7 +248,7 @@ keep a count of your place in the list.

.. code-block:: python
for i, item in a:
for i, item in enumerate(a):
print i + ", " + item
# prints
# 0, 3
Expand Down

0 comments on commit b80f05a

Please sign in to comment.