Skip to content

Commit aafe657

Browse files
committed
Use init=Inf for minimum docstring
1 parent 32d7f93 commit aafe657

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/reduce.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,8 +682,8 @@ than or equal to any other element) that will be returned for empty collections.
682682
julia> minimum(length, ["Julion", "Julia", "Jule"])
683683
4
684684
685-
julia> minimum(length, []; init=-1)
686-
-1
685+
julia> minimum(length, []; init=Inf)
686+
Inf
687687
```
688688
"""
689689
minimum(f, a; kw...) = mapreduce(f, min, a; kw...)

0 commit comments

Comments
 (0)