Skip to content

Commit

Permalink
Update src/dispatch.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Oct 15, 2024
1 parent f3695dd commit f4bdeb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dispatch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function Base.sum(
dims = :,
init = zero(promote_operation(+, T, T)),
) where {T<:AbstractMutable}
if dims !== :
if dims !== Colon()
# We cannot use `mapreduce` with `add!!` instead of `Base.add_mul` like
# `operate(sum, ...)` because the same instance given at `init` is used
# at several places.
Expand Down

0 comments on commit f4bdeb3

Please sign in to comment.