public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
* [Patch, committed] Fortran: Fix wording in intrinsic.texi's MIN (was: Minor error on MIN() page)
       [not found] <CAD-JCjvun+aEhHu0E6B1AEd+xY_OrBJTkyX-m1jWKcvUzAi6Vg@mail.gmail.com>
@ 2021-03-10 20:27 ` Tobias Burnus
  0 siblings, 0 replies; only message in thread
From: Tobias Burnus @ 2021-03-10 20:27 UTC (permalink / raw)
  To: Russ Childers, gcc, fortran

[-- Attachment #1: Type: text/plain, Size: 572 bytes --]

Thanks for the report. I have now applied the attached patch.

Tobias

On 10.03.21 20:44, Russ Childers via Gcc wrote:
> https://gcc.gnu.org/onlinedocs/gfortran/MIN.html
>
> ...says
>
> "
> The return value corresponds to the maximum value among the arguments, and
> has the same type and kind as the first argument.
> "
>
> Should be "minimum value"
>
> Best,
> Russ Childers
-----------------
Mentor Graphics (Deutschland) GmbH, Arnulfstrasse 201, 80634 München Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Frank Thürauf

[-- Attachment #2: committed.diff --]
[-- Type: text/x-patch, Size: 1728 bytes --]

commit 9dcc2edfa657d26223f7e74d27af225d4bbf11a9
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Wed Mar 10 21:24:18 2021 +0100

    Fortran: Fix wording in intrinsic.texi's MIN
    
    gcc/fortran/ChangeLog:
    
            * intrinsic.texi (MIN): Correct 'maximum' to 'minimum'.

diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi
index ea78f7d343a..73baa34104e 100644
--- a/gcc/fortran/intrinsic.texi
+++ b/gcc/fortran/intrinsic.texi
@@ -10621,21 +10621,21 @@ Elemental function
 @item @emph{Arguments}:
 @multitable @columnfractions .15 .70
 @item @var{A1}          @tab The type shall be @code{INTEGER} or
 @code{REAL}.
 @item @var{A2}, @var{A3}, ... @tab An expression of the same type and kind
 as @var{A1}.  (As a GNU extension, arguments of different kinds are
 permitted.)
 @end multitable
 
 @item @emph{Return value}:
-The return value corresponds to the maximum value among the arguments,
+The return value corresponds to the minimum value among the arguments,
 and has the same type and kind as the first argument.
 
 @item @emph{Specific names}:
 @multitable @columnfractions .20 .20 .20 .25
 @item Name              @tab Argument             @tab Return type        @tab Standard
 @item @code{MIN0(A1)}   @tab @code{INTEGER(4) A1} @tab @code{INTEGER(4)}  @tab Fortran 77 and later
 @item @code{AMIN0(A1)}  @tab @code{INTEGER(4) A1} @tab @code{REAL(4)}     @tab Fortran 77 and later
 @item @code{MIN1(A1)}   @tab @code{REAL A1}       @tab @code{INTEGER(4)}  @tab Fortran 77 and later
 @item @code{AMIN1(A1)}  @tab @code{REAL(4) A1}    @tab @code{REAL(4)}     @tab Fortran 77 and later
 @item @code{DMIN1(A1)}  @tab @code{REAL(8) A1}    @tab @code{REAL(8)}     @tab Fortran 77 and later

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-10 20:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAD-JCjvun+aEhHu0E6B1AEd+xY_OrBJTkyX-m1jWKcvUzAi6Vg@mail.gmail.com>
2021-03-10 20:27 ` [Patch, committed] Fortran: Fix wording in intrinsic.texi's MIN (was: Minor error on MIN() page) Tobias Burnus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).