From aeb9c7d8d7c3f6470a19684c0f20f31561deefbe Mon Sep 17 00:00:00 2001 From: Harry Date: Thu, 6 Sep 2018 15:39:53 +0100 Subject: [PATCH] Fix typo in mapreduce docstring (#29049) (cherry picked from commit be14985ef8e65af79c4bcd6e8a9ce6a59b88f513) --- base/reduce.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/reduce.jl b/base/reduce.jl index caeadc55b40171..a1732a87f860f5 100644 --- a/base/reduce.jl +++ b/base/reduce.jl @@ -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.