Skip to content

Commit ea2cc8b

Browse files
committed
Reflect the same changes to other docstrings (2)
1 parent 6918213 commit ea2cc8b

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

base/reduce.jl

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -692,8 +692,12 @@ minimum(f, a; kw...) = mapreduce(f, min, a; kw...)
692692
maximum(itr; [init])
693693
694694
Returns the largest element in a collection.
695-
If provided, `init` must be a neutral element for `max` that will be returned
696-
for empty collections.
695+
696+
If provided, `init` must be a neutral element for `max` (i.e. which is less
697+
than or equal to any other element) that will be returned for empty collections.
698+
699+
!!! compat "Julia 1.6"
700+
Keyword argument `init` requires Julia 1.6 or later.
697701
698702
# Examples
699703
```jldoctest
@@ -718,8 +722,12 @@ maximum(a; kw...) = mapreduce(identity, max, a; kw...)
718722
minimum(itr; [init])
719723
720724
Returns the smallest element in a collection.
721-
If provided, `init` must be a neutral element for `min` that will be returned
722-
for empty collections.
725+
726+
If provided, `init` must be a neutral element for `min` (i.e. which is greater
727+
than or equal to any other element) that will be returned for empty collections.
728+
729+
!!! compat "Julia 1.6"
730+
Keyword argument `init` requires Julia 1.6 or later.
723731
724732
# Examples
725733
```jldoctest

0 commit comments

Comments
 (0)