From 2d70b7d5300e931a301ad0c828d01f7e781e768e Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Fri, 19 Jun 2020 12:46:48 -0700 Subject: [PATCH] Fixup docstrings --- base/reduce.jl | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/base/reduce.jl b/base/reduce.jl index 44032ce8523af..15b0715d55aa2 100644 --- a/base/reduce.jl +++ b/base/reduce.jl @@ -769,10 +769,9 @@ Compute both the minimum and maximum element in a single pass, and return them a The value returned for empty `itr` can be specified by `init`. It must be a 2-tuple whose first and second elements are neutral elements for `min` and `max` respectively -(i.e. which are greater/less than or equal to any other element). -is used for non-empty collections. Note: it implies that, for empty `itr`, the first -element is typically _greater_ than the last element. This is a "paradoxical" but yet -expected result. +(i.e. which are greater/less than or equal to any other element). It is used for non-empty +collections. Note: it implies that, for empty `itr`, the first element is typically +_greater_ than the last element. This is a "paradoxical" but yet expected result. !!! compat "Julia 1.6" Keyword argument `init` requires Julia 1.6 or later. @@ -799,10 +798,9 @@ them as a 2-tuple. Only one pass is made over `itr`. The value returned for empty `itr` can be specified by `init`. It must be a 2-tuple whose first and second elements are neutral elements for `min` and `max` respectively -(i.e. which are greater/less than or equal to any other element). -is used for non-empty collections. Note: it implies that, for empty `itr`, the first -element is typically _greater_ than the last element. This is a "paradoxical" but yet -expected result. +(i.e. which are greater/less than or equal to any other element). It is used for non-empty +collections. Note: it implies that, for empty `itr`, the first element is typically +_greater_ than the last element. This is a "paradoxical" but yet expected result. !!! compat "Julia 1.2" This method requires Julia 1.2 or later.