Skip to content

Commit 7f1623e

Browse files
martinholtersandreasnoack
authored andcommitted
Fix countnz deprecation (#23509)
* `export foo` -> `export countnz` * `depwarn(..., :depwarn)` -> `depwarn(..., :countnz)`
1 parent 644c53c commit 7f1623e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/deprecated.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,9 +1740,9 @@ end
17401740
@deprecate IOContext(io::IO, key, value) IOContext(io, key=>value)
17411741

17421742
# PR #23485
1743-
export foo
1743+
export countnz
17441744
function countnz(x)
1745-
depwarn("countnz(x) is deprecated, use either count(!iszero, x) or count(t -> t != 0, x) instead.", :depwarn)
1745+
depwarn("countnz(x) is deprecated, use either count(!iszero, x) or count(t -> t != 0, x) instead.", :countnz)
17461746
return count(t -> t != 0, x)
17471747
end
17481748

0 commit comments

Comments
 (0)