Commit fab57ccd authored by Chris Jerdonek's avatar Chris Jerdonek

Close issue #16077: fix code example in documentation of reduce() built-in (from docs@).

parent 3e09b140
......@@ -1100,7 +1100,7 @@ available. They are listed here in alphabetical order.
except StopIteration:
raise TypeError('reduce() of empty sequence with no initial value')
accum_value = initializer
for x in iterable:
for x in it:
accum_value = function(accum_value, x)
return accum_value
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment