From 33659c73c9c7d8d0636697a22377bbf8fd8368cf Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Tue, 16 Jun 2020 10:46:54 -0700 Subject: [PATCH] Remove `init` from `count!` docstring (#36305) --- base/reducedim.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/base/reducedim.jl b/base/reducedim.jl index 140e004cc5457..8b0d8327f4e39 100644 --- a/base/reducedim.jl +++ b/base/reducedim.jl @@ -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.