diff --git a/base/sparse/sparsematrix.jl b/base/sparse/sparsematrix.jl index d69721a9c3479..09255dacdaefa 100644 --- a/base/sparse/sparsematrix.jl +++ b/base/sparse/sparsematrix.jl @@ -1284,7 +1284,7 @@ dropzeros(A::SparseMatrixCSC, trim::Bool = true) = dropzeros!(copy(A), trim) function find(S::SparseMatrixCSC) if !(eltype(S) <: Bool) - depwarn("In the future `find(A)` will only work on boolean collections. Use `find(x->x!=0, A)` instead.", :find) + Base.depwarn("In the future `find(A)` will only work on boolean collections. Use `find(x->x!=0, A)` instead.", :find) end return find(x->x!=0, S) end diff --git a/base/sparse/sparsevector.jl b/base/sparse/sparsevector.jl index 8c5d5ab18115d..ddaf2ef9ebf54 100644 --- a/base/sparse/sparsevector.jl +++ b/base/sparse/sparsevector.jl @@ -651,7 +651,7 @@ end function find(x::SparseVector) if !(eltype(x) <: Bool) - depwarn("In the future `find(A)` will only work on boolean collections. Use `find(x->x!=0, A)` instead.", :find) + Base.depwarn("In the future `find(A)` will only work on boolean collections. Use `find(x->x!=0, A)` instead.", :find) end return find(x->x!=0, x) end