This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: Typo fix in g77's manual



I was reading the manual for g77, and saw a typo in the description of
the absolute value intrinsic.  For the example of what abs(z) for complex
values of z, it puts a comma where there should be a plus sign.

While I was at it, there is also a grammar problem there too.  It
looks reasonable as source, but typesets to:
``...it is computed by negating the A if it in negative, or returning A.''


Index: gcc/gcc/f/intdoc.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/f/intdoc.in,v
retrieving revision 1.21
diff -u -p -r1.21 intdoc.in
--- intdoc.in	1999/05/03 16:07:20	1.21
+++ intdoc.in	2001/07/10 02:16:04
@@ -55,11 +55,11 @@ If @var{@1@} is type @code{COMPLEX}, the
 value is computed as:
 
 @example
-SQRT(REALPART(@var{@1@})**2, IMAGPART(@var{@1@})**2)
+SQRT(REALPART(@var{@1@})**2+IMAGPART(@var{@1@})**2)
 @end example
 
 @noindent
-Otherwise, it is computed by negating the @var{@1@} if
+Otherwise, it is computed by negating @var{@1@} if
 it is negative, or returning @var{@1@}.
 
 @xref{Sign Intrinsic}, for how to explicitly


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]