doc: Tweak example.
authorBruno Haible <bruno@clisp.org>
Sun, 6 Dec 2020 11:49:58 +0000 (12:49 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 6 Dec 2020 11:49:58 +0000 (12:49 +0100)
* doc/intprops.texi (Checking Integer Overflow): Use 'printf', not
'print'.

ChangeLog
doc/intprops.texi

index e0280219a0b42293303ed12939d88a5898c570a8..8f749e286dc9c48d3fd5e8dc4cde1948352b1599 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-12-06  Bruno Haible  <bruno@clisp.org>
+
+       doc: Tweak example.
+       * doc/intprops.texi (Checking Integer Overflow): Use 'printf', not
+       'print'.
+
 2020-12-06  Bruno Haible  <bruno@clisp.org>
 
        filenamecat-tests: Use idx_t for nonnegative ptrdiff_t variables.
index f3a958a75f2de49b371683b93a4fee1344a0304a..b668285c5155ffa793d433014e72a6498ad4772b 100644 (file)
@@ -167,7 +167,7 @@ arithmetic.  For example:
 if ((a + b < b) == (a < 0))
   a += b;
 else
-  print ("overflow");
+  printf ("overflow\n");
 @end example
 
 @noindent