public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* https://gcc.gnu.org/onlinedocs/gcc-11.1.0/gfortran/
       [not found] <4e1d0ba8-07ea-a556-4b55-2f6139947f85@unet.univie.ac.at>
@ 2021-05-24 21:21 ` Johannes Nendwich
  2021-05-25  7:25   ` [patch, committed] fortran/intrinsic.texi: Fix copy'n'paste errors and typos (was: https://gcc.gnu.org/onlinedocs/gcc-11.1.0/gfortran/) Tobias Burnus
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes Nendwich @ 2021-05-24 21:21 UTC (permalink / raw)
  To: gcc, gcc-patches, fortran, Tobias Burnus

Hi folks,

some more suggestions for corrections in the onlinedocs:


https://gcc.gnu.org/onlinedocs/gcc-11.1.0/gfortran/GERROR.html#GERROR

RESULT	"Shall of type CHARACTER and of default"
    --> "Shall BE of ... default KIND."


https://gcc.gnu.org/onlinedocs/gcc-11.1.0/gfortran/GETARG.html#GETARG

2 x "VALUE	Shall be of type CHARACTER [...]"


https://gcc.gnu.org/onlinedocs/gcc-11.1.0/gfortran/GETLOG.html#GETLOG

"Stores the current user name in LOGIN."
-->
"Stores the current user name in C."


https://gcc.gnu.org/onlinedocs/gcc-11.1.0/gfortran/NORM2.html#NORM2

"Calculates the Euclidean vector norm (L_2 norm) of of ARRAY along
dimension DIM."

"... of of ..."
-->
"... of ..."


https://gcc.gnu.org/onlinedocs/gcc-11.1.0/gfortran/PARITY.html#PARITY

"LOGICAL	Shall be ..."
-->
"MASK	        Shall be ..."


https://gcc.gnu.org/onlinedocs/gcc-11.1.0/gfortran/RANDOM_005fINIT.html#RANDOM_005fINIT

"IMAGE_DISTINCT   ... the seed is set value that does ..."
-->
"IMAGE_DISTINCT   ... the seed is set TO A value that does ..."


https://gcc.gnu.org/onlinedocs/gcc-11.1.0/gfortran/RANDOM_005fNUMBER.html#RANDOM_005fNUMBER

"Syntax: RANDOM_NUMBER(HARVEST)"
-->
"Syntax: CALL RANDOM_NUMBER(HARVEST)"


Greets,
Johannes

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [patch, committed] fortran/intrinsic.texi: Fix copy'n'paste errors and typos (was: https://gcc.gnu.org/onlinedocs/gcc-11.1.0/gfortran/)
  2021-05-24 21:21 ` https://gcc.gnu.org/onlinedocs/gcc-11.1.0/gfortran/ Johannes Nendwich
@ 2021-05-25  7:25   ` Tobias Burnus
  0 siblings, 0 replies; 2+ messages in thread
From: Tobias Burnus @ 2021-05-25  7:25 UTC (permalink / raw)
  To: Johannes Nendwich, gcc, gcc-patches, fortran

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

Hi Johannes, hi all,

On 24.05.21 23:21, Johannes Nendwich wrote:
> some more suggestions for corrections in the onlinedocs:

thanks for the proof reading.

I have converted it into a patch and committed it as attached.

Tobias

-----------------
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: 2939 bytes --]

commit 2044a3e3e8343d047344523a1cca98309ce68fdc
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Tue May 25 09:17:07 2021 +0200

    fortran/intrinsic.texi: Fix copy'n'paste errors and typos
    
    gcc/fortran/ChangeLog:
    
            * intrinsic.texi (GERROR, GETARGS, GETLOG, NORM2, PARITY, RANDOM_INIT,
            RANDOM_NUMBER): Fix typos and copy'n'paste errors.
    
    Co-Authored-By: Johannes Nendwich <a08727063@unet.univie.ac.at>

diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi
index ad164137986..c9049b539d5 100644
--- a/gcc/fortran/intrinsic.texi
+++ b/gcc/fortran/intrinsic.texi
@@ -6835,7 +6835,7 @@ Subroutine
 
 @item @emph{Arguments}:
 @multitable @columnfractions .15 .70
-@item @var{RESULT}  @tab Shall of type @code{CHARACTER} and of default
+@item @var{RESULT}  @tab Shall be of type @code{CHARACTER} and of default kind.
 @end multitable
 
 @item @emph{Example}:
@@ -6885,7 +6885,6 @@ Subroutine
 the default integer kind; @math{@var{POS} \geq 0}
 @item @var{VALUE} @tab Shall be of type @code{CHARACTER} and of default
 kind.
-@item @var{VALUE} @tab Shall be of type @code{CHARACTER}. 
 @end multitable
 
 @item @emph{Return value}:
@@ -7259,7 +7258,7 @@ Subroutine
 @end multitable
 
 @item @emph{Return value}:
-Stores the current user name in @var{LOGIN}.  (On systems where POSIX
+Stores the current user name in @var{C}.  (On systems where POSIX
 functions @code{geteuid} and @code{getpwuid} are not available, and 
 the @code{getlogin} function is not implemented either, this will
 return a blank string.)
@@ -11202,7 +11201,7 @@ end program test_nint
 
 @table @asis
 @item @emph{Description}:
-Calculates the Euclidean vector norm (@math{L_2} norm) of
+Calculates the Euclidean vector norm (@math{L_2} norm)
 of @var{ARRAY} along dimension @var{DIM}.
 
 @item @emph{Standard}:
@@ -11555,7 +11554,7 @@ Transformational function
 
 @item @emph{Arguments}:
 @multitable @columnfractions .15 .70
-@item @var{LOGICAL} @tab Shall be an array of type @code{LOGICAL}
+@item @var{MASK} @tab Shall be an array of type @code{LOGICAL}
 @item @var{DIM}   @tab (Optional) shall be a scalar of type 
 @code{INTEGER} with a value in the range from 1 to n, where n 
 equals the rank of @var{MASK}.
@@ -12005,7 +12004,7 @@ is set to a processor-dependent value.
 @code{LOGICAL} type, and it is @code{INTENT(IN)}.  If it is @code{.true.},
 the seed is set to a processor-dependent value that is distinct from th
 seed set by a call to @code{RANDOM_INIT} in another image.  If it is
-@code{.false.}, the seed is set value that does depend which image called
+@code{.false.}, the seed is set to a value that does depend which image called
 @code{RANDOM_INIT}.
 @end multitable
 
@@ -12057,7 +12056,7 @@ Fortran 90 and later
 Subroutine
 
 @item @emph{Syntax}:
-@code{RANDOM_NUMBER(HARVEST)}
+@code{CALL RANDOM_NUMBER(HARVEST)}
 
 @item @emph{Arguments}:
 @multitable @columnfractions .15 .70

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-25  7:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <4e1d0ba8-07ea-a556-4b55-2f6139947f85@unet.univie.ac.at>
2021-05-24 21:21 ` https://gcc.gnu.org/onlinedocs/gcc-11.1.0/gfortran/ Johannes Nendwich
2021-05-25  7:25   ` [patch, committed] fortran/intrinsic.texi: Fix copy'n'paste errors and typos (was: https://gcc.gnu.org/onlinedocs/gcc-11.1.0/gfortran/) 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).