Skip to content

Commit

Permalink
Remove init from count! docstring (#36305)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf authored Jun 16, 2020
1 parent 2749582 commit 33659c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions base/reducedim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,10 @@ count(A::AbstractArrayOrBroadcasted; dims=:) = count(identity, A, dims=dims)
count(f, A::AbstractArrayOrBroadcasted; dims=:) = mapreduce(_bool(f), add_sum, A, dims=dims, init=0)

"""
count!([f=identity,] r, A; init=true)
count!([f=identity,] r, A)
Count the number of elements in `A` for which `f` returns `true` over the
singleton dimensions of `r`, writing the result into `r` in-place.
If `init` is `true`, values in `r` are initialized to zero.
!!! compat "Julia 1.5"
inplace `count!` was added in Julia 1.5.
Expand Down

0 comments on commit 33659c7

Please sign in to comment.