From af34f2e3ffb557b90ec0874a69d05467bd860baa Mon Sep 17 00:00:00 2001 From: Jim Garrison Date: Wed, 29 Aug 2018 01:09:04 -0400 Subject: [PATCH] Fix typo in accumulate docstring (#28939) (cherry picked from commit 39e5742557cf56f26e1eccd28ab52d258ae19863) --- base/accumulate.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/accumulate.jl b/base/accumulate.jl index 74c1c3a8c58e09..c5c4e83b3b0e30 100644 --- a/base/accumulate.jl +++ b/base/accumulate.jl @@ -191,7 +191,7 @@ cumprod(x::AbstractVector) = cumprod(x, dims=1) accumulate(op, A; dims::Integer, [init]) Cumulative operation `op` along the dimension `dims` of `A` (providing `dims` is optional -for vectors). An inital value `init` may optionally be provided by a keyword argument. See +for vectors). An initial value `init` may optionally be provided by a keyword argument. See also [`accumulate!`](@ref) to use a preallocated output array, both for performance and to control the precision of the output (e.g. to avoid overflow). For common operations there are specialized variants of `accumulate`, see: [`cumsum`](@ref), [`cumprod`](@ref)