Skip to content

Commit

Permalink
Merge pull request #674 from Blablablanca/rename-pow-function
Browse files Browse the repository at this point in the history
Renamed `Pow` function for clarity
  • Loading branch information
bowenszhu authored Nov 14, 2024
2 parents a587847 + cd77970 commit c8d1fe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ end

@inline denominators(x) = isdiv(x) ? numerators(x.den) : Any[1]

function (::Type{<:Pow{T}})(a, b; metadata=NO_METADATA) where {T}
function Pow{T}(a, b; metadata=NO_METADATA) where {T}
_iszero(b) && return 1
_isone(b) && return a
Pow{T}(; base=a, exp=b, arguments=[], metadata)
Expand Down

0 comments on commit c8d1fe0

Please sign in to comment.