Skip to content

Commit

Permalink
Use init=Inf for minimum docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Jun 8, 2020
1 parent 32d7f93 commit aafe657
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/reduce.jl
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,8 @@ than or equal to any other element) that will be returned for empty collections.
julia> minimum(length, ["Julion", "Julia", "Jule"])
4
julia> minimum(length, []; init=-1)
-1
julia> minimum(length, []; init=Inf)
Inf
```
"""
minimum(f, a; kw...) = mapreduce(f, min, a; kw...)
Expand Down

0 comments on commit aafe657

Please sign in to comment.