Skip to content

Commit

Permalink
News and compat annotation for #29033 (mean and var for empty iterato…
Browse files Browse the repository at this point in the history
…rs).
  • Loading branch information
fredrikekre committed Dec 4, 2018
1 parent 3b57437 commit f6c5b0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ Standard library changes
* `merge(::NamedTuple, ::NamedTuple...)` can now be used with more than 2 `NamedTuple`s ([#29259]).
* `Future.copy!` has been moved to `Base` ([#29178]).
* New `ncodeunits(c::Char)` method as a fast equivalent to `ncodeunits(string(c))` ([#29153]).
* `mean` and `var` now handles the empty case ([#29033]).

Compiler/Runtime improvements
-----------------------------
Expand Down
3 changes: 3 additions & 0 deletions stdlib/Statistics/src/Statistics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ end
Compute the mean of an array over the given dimensions.
!!! compat "Julia 1.1"
`mean` for empty arrays requires at least Julia 1.1.
# Examples
```jldoctest
julia> A = [1 2; 3 4]
Expand Down

0 comments on commit f6c5b0b

Please sign in to comment.