]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fortran: fix documentation of intrinsic SPLIT [PR123941]
authorHarald Anlauf <anlauf@gmx.de>
Wed, 4 Feb 2026 19:45:50 +0000 (20:45 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Wed, 4 Feb 2026 21:54:17 +0000 (22:54 +0100)
PR fortran/123941

gcc/fortran/ChangeLog:

* intrinsic.texi: SPLIT is a subroutine, not a function.
Improve documentation of its arguments.

gcc/fortran/intrinsic.texi

index 7f3b95edffe61bcfbff9a5a2feef28f27bf22859..cf81791b8b30f81d6ce5e002d3e5ad6b5d328b2c 100644 (file)
@@ -14215,7 +14215,7 @@ Fortran 90 and later
 
 @table @asis
 @item @emph{Synopsis}:
-@code{RESULT = SPLIT(STRING, SET, POS [, BACK])}
+@code{CALL SPLIT(STRING, SET, POS [, BACK])}
 
 @item @emph{Description}:
 Updates the integer @var{POS} to the position of the next (or previous)
@@ -14240,10 +14240,10 @@ Subroutine
 
 @item @emph{Arguments}:
 @multitable @columnfractions .15 .70
-@item @var{STRING} @tab Shall be of type @code{CHARACTER}.
-@item @var{SET}    @tab Shall be of type @code{CHARACTER}.
-@item @var{POS}    @tab Shall be of type @code{INTEGER}.
-@item @var{BACK}   @tab (Optional) Shall be of type @code{LOGICAL}.
+@item @var{STRING} @tab Shall be a scalar of type @code{CHARACTER}.
+@item @var{SET}    @tab Shall be a scalar of type @code{CHARACTER}.
+@item @var{POS}    @tab Shall be a scalar of type @code{INTEGER}.
+@item @var{BACK}   @tab (Optional) Shall be a scalar of type @code{LOGICAL}.
 @end multitable
 
 @item @emph{Example}: