From 0eeffb106eb186d5bdaa7fafd5513f0963db28cb Mon Sep 17 00:00:00 2001 From: Alexander Seiler Date: Sun, 18 Aug 2019 20:33:36 +0200 Subject: [PATCH] Fix typo in docstring of `droptol!` for sparse vectors (#32955) --- stdlib/SparseArrays/src/sparsevector.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)