Skip to content

Commit c3e66a5

Browse files
committed
Add compat annotations to minimum and maximum
1 parent 72d01c0 commit c3e66a5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

base/reduce.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,9 @@ Returns the largest result of calling function `f` on each element of `itr`.
646646
If provided, `init` must be a neutral element for `max` that will be returned
647647
for empty collections.
648648
649+
!!! compat "Julia 1.6"
650+
Keyword argument `init` requires Julia 1.6 or later.
651+
649652
# Examples
650653
```jldoctest
651654
julia> maximum(length, ["Julion", "Julia", "Jule"])
@@ -664,6 +667,9 @@ Returns the smallest result of calling function `f` on each element of `itr`.
664667
If provided, `init` must be a neutral element for `min` that will be returned
665668
for empty collections.
666669
670+
!!! compat "Julia 1.6"
671+
Keyword argument `init` requires Julia 1.6 or later.
672+
667673
# Examples
668674
```jldoctest
669675
julia> minimum(length, ["Julion", "Julia", "Jule"])

0 commit comments

Comments
 (0)