diff --git a/stdlib/SparseArrays/src/sparsevector.jl b/stdlib/SparseArrays/src/sparsevector.jl index 2a26f58a9d41c..b0efff372618b 100644 --- a/stdlib/SparseArrays/src/sparsevector.jl +++ b/stdlib/SparseArrays/src/sparsevector.jl @@ -1955,7 +1955,7 @@ end droptol!(x::SparseVector, tol; trim::Bool = true) Removes stored values from `x` whose absolute value is less than or equal to `tol`, -optionally trimming resulting excess space from `A.rowval` and `A.nzval` when `trim` +optionally trimming resulting excess space from `x.nzind` and `x.nzval` when `trim` is `true`. """ droptol!(x::SparseVector, tol; trim::Bool = true) = fkeep!(x, (i, x) -> abs(x) > tol, trim)