Skip to content

Commit b49d5ba

Browse files
authored
fixed typo in error message for Rational{BigInt} constructor (#35575)
1 parent 1dcb42f commit b49d5ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/irrationals.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Complex{T}(x::AbstractIrrational) where {T<:Real} = Complex{T}(T(x))
5151
p += 32
5252
end
5353
end
54-
(::Type{Rational{BigInt}})(x::AbstractIrrational) = throw(ArgumentError("Cannot convert an AbstractIrrational to a Rational{BigInt}: use rationalize(Rational{BigInt}, x) instead"))
54+
(::Type{Rational{BigInt}})(x::AbstractIrrational) = throw(ArgumentError("Cannot convert an AbstractIrrational to a Rational{BigInt}: use rationalize(BigInt, x) instead"))
5555

5656
@pure function (t::Type{T})(x::AbstractIrrational, r::RoundingMode) where T<:Union{Float32,Float64}
5757
setprecision(BigFloat, 256) do

0 commit comments

Comments
 (0)