From: Harald Anlauf Date: Wed, 4 Feb 2026 19:45:50 +0000 (+0100) Subject: Fortran: fix documentation of intrinsic SPLIT [PR123941] X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=301874021bc7294bcccc629a78634e47e8131820;p=thirdparty%2Fgcc.git Fortran: fix documentation of intrinsic SPLIT [PR123941] PR fortran/123941 gcc/fortran/ChangeLog: * intrinsic.texi: SPLIT is a subroutine, not a function. Improve documentation of its arguments. --- diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi index 7f3b95edffe..cf81791b8b3 100644 --- a/gcc/fortran/intrinsic.texi +++ b/gcc/fortran/intrinsic.texi @@ -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}: