Skip to content

Commit

Permalink
Update comment in promote_type method
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed Dec 8, 2024
1 parent 30d1239 commit 8c385a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions base/promotion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,7 @@ function promote_type(::Type{T}, ::Type{S}) where {T,S}
# Try promote_rule in both orders. Typically only one is defined,
# and there is a fallback returning Bottom below, so the common case is
# promote_type(T, S) =>
# promote_result(T, S, result, Bottom) =>
# typejoin(result, Bottom) => result
# promote_result(T, S, result, Bottom) => result
promote_result(T, S, promote_rule(T,S), promote_rule(S,T))
end

Expand Down

0 comments on commit 8c385a8

Please sign in to comment.