Skip to content

Commit

Permalink
less lines
Browse files Browse the repository at this point in the history
  • Loading branch information
nsajko authored Nov 23, 2024
1 parent b72a316 commit a124648
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions base/irrationals.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ function _irrational_to_rational_at_current_rounding_mode(::Type{T}, x::Abstract
p += 32
end
end
function _irrational_to_rational(
::Type{T}, x::AbstractIrrational,
) where {T <: Integer}
function _irrational_to_rational(::Type{T}, x::AbstractIrrational) where {T <: Integer}
f = let x = x
() -> _irrational_to_rational_at_current_rounding_mode(T, x)
end
Expand Down

0 comments on commit a124648

Please sign in to comment.