Skip to content

Commit 5dc6c03

Browse files
Sacha0tkelman
authored andcommitted
Add replacement suggestion to frexp(::Array{<:AbstractFloat}) deprecation. (#21991)
(cherry picked from commit cf5c063)
1 parent 6e67729 commit 5dc6c03

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

base/deprecated.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,9 @@ end
847847
@deprecate ~(B::BitArray) .~B
848848

849849
function frexp(A::Array{<:AbstractFloat})
850-
depwarn("`frexp(x::Array)` is discontinued.", :frexp)
850+
depwarn(string("`frexp(x::Array)` is discontinued. Though not a direct replacement, ",
851+
"consider using dot-syntax to `broadcast` scalar `frexp` over `Array`s ",
852+
"instead, for example `frexp.(rand(4))`."), :frexp)
851853
F = similar(A)
852854
E = Array{Int}(size(A))
853855
for (iF, iE, iA) in zip(eachindex(F), eachindex(E), eachindex(A))

0 commit comments

Comments
 (0)