Skip to content

Commit

Permalink
Fix typo in mapreduce docstring (#29049)
Browse files Browse the repository at this point in the history
(cherry picked from commit be14985)
  • Loading branch information
harryscholes authored and KristofferC committed Feb 11, 2019
1 parent 256ba1f commit aeb9c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/reduce.jl
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ mapreduce_impl(f, op, A::AbstractArray, ifirst::Integer, ilast::Integer) =
mapreduce(f, op, itr; [init])
Apply function `f` to each element in `itr`, and then reduce the result using the binary
function `op`. If provided, `init` must be a neutral element for `op` that will be returne
function `op`. If provided, `init` must be a neutral element for `op` that will be returned
for empty collections. It is unspecified whether `init` is used for non-empty collections.
In general, it will be necessary to provide `init` to work with empty collections.
Expand Down

0 comments on commit aeb9c7d

Please sign in to comment.