Skip to content

Commit

Permalink
Update src/anti_diff.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Benoît Legat <[email protected]>
  • Loading branch information
chrhansk and blegat authored Apr 8, 2024
1 parent d29b6d7 commit 531aa26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/anti_diff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function _div_by_power(x::T, y::Int) where {T}
x / y
end

function _div_by_power(x::T, y::Int)::Rational{T} where {T<:Int}
function _div_by_power(x::T, y::Int)::Rational{T} where {T<:Integer}
x // y
end

Expand Down

0 comments on commit 531aa26

Please sign in to comment.