Skip to content

Commit

Permalink
Fix typo in accumulate docstring (#28939)
Browse files Browse the repository at this point in the history
(cherry picked from commit 39e5742)
  • Loading branch information
garrison authored and KristofferC committed Sep 8, 2018
1 parent 5adb197 commit a9bec19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/accumulate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a9bec19

Please sign in to comment.