Skip to content

Commit 890a6e9

Browse files
tkfsimeonschaub
authored andcommitted
Remove init from count! docstring (JuliaLang#36305)
1 parent 9dc015e commit 890a6e9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

base/reducedim.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,11 +390,10 @@ count(A::AbstractArrayOrBroadcasted; dims=:) = count(identity, A, dims=dims)
390390
count(f, A::AbstractArrayOrBroadcasted; dims=:) = mapreduce(_bool(f), add_sum, A, dims=dims, init=0)
391391

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

0 commit comments

Comments
 (0)