From b80f05a16e0793c35f279356e2c58dab2278569a Mon Sep 17 00:00:00 2001 From: Lee Trout Date: Sun, 25 Mar 2012 13:07:09 -0300 Subject: [PATCH] Added missing call to enumerate. --- docs/writing/style.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/writing/style.rst b/docs/writing/style.rst index c50c3452d..e54e6be20 100644 --- a/docs/writing/style.rst +++ b/docs/writing/style.rst @@ -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