Skip to content

Commit ec0027f

Browse files
authored
doc: add second reduce docstring to manual (JuliaLang#45788)
1 parent 68d62ab commit ec0027f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

base/reducedim.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ _mapreduce_dim(f, op, ::_InitialValue, A::AbstractArrayOrBroadcasted, dims) =
372372
mapreducedim!(f, op, reducedim_init(f, op, A, dims), A)
373373

374374
"""
375-
reduce(f, A; dims=:, [init])
375+
reduce(f, A::AbstractArray; dims=:, [init])
376376
377377
Reduce 2-argument function `f` along dimensions of `A`. `dims` is a vector specifying the
378378
dimensions to reduce, and the keyword argument `init` is the initial value to use in the

doc/src/base/collections.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ Base.unique!
9696
Base.allunique
9797
Base.allequal
9898
Base.reduce(::Any, ::Any)
99+
Base.reduce(::Any, ::AbstractArray)
99100
Base.foldl(::Any, ::Any)
100101
Base.foldr(::Any, ::Any)
101102
Base.maximum

0 commit comments

Comments
 (0)