Skip to content

Commit

Permalink
less lines
Browse files Browse the repository at this point in the history
  • Loading branch information
nsajko committed Dec 3, 2024
1 parent 668408c commit 89eeb2a
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 89eeb2a

Please sign in to comment.