summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/mpfr.texi5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/mpfr.texi b/doc/mpfr.texi
index e28e73ce9..b4574c55e 100644
--- a/doc/mpfr.texi
+++ b/doc/mpfr.texi
@@ -2456,7 +2456,7 @@ the control of the template string @var{template}, and print it in
@var{buf}. If @var{n} is zero, nothing is
written and @var{buf} may be a null pointer, otherwise, the @var{n}@minus{}1
first characters are written in @var{buf} and the @var{n}-th is a null character.
-Return the number of characters that would have been written had @var{n} be
+Return the number of characters that would have been written had @var{n} been
sufficiently large, @emph{not counting}
the terminating null character, or a negative value if an error occurred.
@c If the number of characters produced by the
@@ -2472,7 +2472,8 @@ Write their output as a null terminated string in a block of memory allocated
using the current allocation function. A pointer to the block is stored in
@var{str}. The block of memory must be freed using @code{mpfr_free_str}.
The return value is the number of characters written in the string, excluding
-the null-terminator, or a negative value if an error occurred.
+the null-terminator, or a negative value if an error occurred, in which case
+the contents of @var{str} are undefined.
@c If the number of
@c characters produced by the optional arguments under the control of the
@c template string @var{template} appears to exceed the maximum limit for an