Skip to content

Commit f83333d

Browse files
committed
News and compat annotation for #29033 (mean and var for empty iterators).
1 parent 9faa3af commit f83333d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ Standard library changes
7575
* `merge(::NamedTuple, ::NamedTuple...)` can now be used with more than 2 `NamedTuple`s ([#29259]).
7676
* `Future.copy!` has been moved to `Base` ([#29178]).
7777
* New `ncodeunits(c::Char)` method as a fast equivalent to `ncodeunits(string(c))` ([#29153]).
78+
* `mean` and `var` now handles the empty case ([#29033]).
7879

7980
Compiler/Runtime improvements
8081
-----------------------------

stdlib/Statistics/src/Statistics.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ end
109109
110110
Compute the mean of an array over the given dimensions.
111111
112+
!!! compat "Julia 1.1"
113+
`mean` for empty arrays requires at least Julia 1.1.
114+
112115
# Examples
113116
```jldoctest
114117
julia> A = [1 2; 3 4]

0 commit comments

Comments
 (0)