diff options
author | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-09-29 11:51:37 -0700 |
---|---|---|
committer | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-09-29 11:51:37 -0700 |
commit | fab57ccd1307deb8c803149de7f5b0e9ea5726b5 (patch) | |
tree | d7f679ee2503afc02f9d04ca97a8cf89128b7646 | |
parent | 3e09b14026d4c2737c2a5b62a5fbd8cd6cfaaea6 (diff) | |
download | cpython-git-fab57ccd1307deb8c803149de7f5b0e9ea5726b5.tar.gz |
Close issue #16077: fix code example in documentation of reduce() built-in (from docs@).
-rw-r--r-- | Doc/library/functions.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index a1f7534b43..25d09d1a81 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -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 |