diff options
-rw-r--r-- | doc/tut1.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/tut1.rst b/doc/tut1.rst index e79214dee..9ebc80689 100644 --- a/doc/tut1.rst +++ b/doc/tut1.rst @@ -411,8 +411,8 @@ Other useful iterators for collections (like arrays and sequences) are * ``pairs`` and ``mpairs`` which provides the element and an index number (immutable and mutable respectively) .. code-block:: nim - for indx, itm in ["a","b"].pairs: - echo itm, " at index ", indx + for index, item in ["a","b"].pairs: + echo item, " at index ", index # => a at index 0 # => b at index 1 |