diff options
author | Kyrylo Tkachov <kyrylo.tkachov@arm.com> | 2019-03-25 09:25:07 +0000 |
---|---|---|
committer | Kyrylo Tkachov <ktkachov@gcc.gnu.org> | 2019-03-25 09:25:07 +0000 |
commit | 4c6d441da15fe18b504d63f19e59b7cd49b6371a (patch) | |
tree | 5206c48b7d19cf11a10f6abc0ab1a437def83ed2 | |
parent | af5a5a71b84825969aff5f1b058f7e013683641c (diff) | |
download | gcc-4c6d441da15fe18b504d63f19e59b7cd49b6371a.tar.gz |
[doc] Fix typos in MINLOC, MAXLOC documentation
I think there's a typo in the documentation of the MINLOC and MAXLOC intrinsics.
It implies that when the BACK argument is true it returns the first occurrence of the min/max value,
but my understanding is that it should return the last occurrence.
This patch fixes the documentation.
* intrinsic.texi (MINLOC): Fix typo in BACK argument documentation.
(MAXLOC): Likewise.
From-SVN: r269906
-rw-r--r-- | gcc/fortran/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/fortran/intrinsic.texi | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 3ce7de36852..e27e5ffcb66 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2019-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com> + + * intrinsic.texi (MINLOC): Fix typo in BACK argument documentation. + (MAXLOC): Likewise. + 2019-03-24 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/78865 diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi index 941c2e39374..ee857c62c71 100644 --- a/gcc/fortran/intrinsic.texi +++ b/gcc/fortran/intrinsic.texi @@ -10111,8 +10111,8 @@ locations of the maximum element along each row of the array in the which @var{MASK} is @code{.TRUE.} are considered. If more than one element in the array has the maximum value, the location returned is that of the first such element in array element order if the -@var{BACK} is not present, or if it false; otherwise, the location -returned is that of the first such element. If the array has zero +@var{BACK} is not present, or is false; if @var{BACK} is true, the location +returned is that of the last such element. If the array has zero size, or all of the elements of @var{MASK} are @code{.FALSE.}, then the result is an array of zeroes. Similarly, if @var{DIM} is supplied and all of the elements of @var{MASK} along a given row are zero, the @@ -10468,8 +10468,8 @@ locations of the minimum element along each row of the array in the which @var{MASK} is @code{.TRUE.} are considered. If more than one element in the array has the minimum value, the location returned is that of the first such element in array element order if the -@var{BACK} is not present, or if it false; otherwise, the location -returned is that of the first such element. If the array has +@var{BACK} is not present, or is false; if @var{BACK} is true, the location +returned is that of the last such element. If the array has zero size, or all of the elements of @var{MASK} are @code{.FALSE.}, then the result is an array of zeroes. Similarly, if @var{DIM} is supplied and all of the elements of @var{MASK} along a given row are zero, the |