Skip to content

Commit

Permalink
Fix signature in mean(f, ...) docstring (#110)
Browse files Browse the repository at this point in the history
Use the same wording as for `sum`.
  • Loading branch information
nalimilan authored May 3, 2022
1 parent 61a021b commit cdd95fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Statistics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ julia> mean(skipmissing([1, missing, 3]))
mean(itr) = mean(identity, itr)

"""
mean(f::Function, itr)
mean(f, itr)
Apply the function `f` to each element of collection `itr` and take the mean.
Expand Down Expand Up @@ -79,7 +79,7 @@ function mean(f, itr)
end

"""
mean(f::Function, A::AbstractArray; dims)
mean(f, A::AbstractArray; dims)
Apply the function `f` to each element of array `A` and take the mean over dimensions `dims`.
Expand Down

0 comments on commit cdd95fe

Please sign in to comment.