* Minor error on MIN() page
@ 2021-03-10 19:44 Russ Childers
2021-03-10 20:27 ` [Patch, committed] Fortran: Fix wording in intrinsic.texi's MIN (was: Minor error on MIN() page) Tobias Burnus
0 siblings, 1 reply; 2+ messages in thread
From: Russ Childers @ 2021-03-10 19:44 UTC (permalink / raw)
To: gcc
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Patch, committed] Fortran: Fix wording in intrinsic.texi's MIN (was: Minor error on MIN() page)
2021-03-10 19:44 Minor error on MIN() page Russ Childers
@ 2021-03-10 20:27 ` Tobias Burnus
0 siblings, 0 replies; 2+ messages 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] 2+ messages in thread
end of thread, other threads:[~2021-03-10 20:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10 19:44 Minor error on MIN() page Russ Childers
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).