Skip to content

Commit adfe6f8

Browse files
authored
add concrete example to NEWS
1 parent 2d74196 commit adfe6f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

NEWS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ Standard library changes
4040

4141
* Empty dimensional reductions (e.g., `reduce` and `mapreduce` with the `dims` keyword
4242
selecting one or more dimensions) now behave like their whole-array (`dims=:`) counterparts,
43-
only returning values in unambiguous cases and erroring otherwise.
43+
only returning values in unambiguous cases and erroring otherwise. For example,
44+
`minimum([], dims=2)` is now an error; it would previously return an empty array.
45+
This can be addressed with the `init` keyword argument as the error message directs.
4446

4547
#### JuliaSyntaxHighlighting
4648

0 commit comments

Comments
 (0)