ftoastr: fix comment again
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 21 Dec 2010 07:48:19 +0000 (23:48 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 21 Dec 2010 07:48:47 +0000 (23:48 -0800)
* lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
<http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
Also, simplify example a bit by using flags = 0.

ChangeLog
lib/ftoastr.h

index 55e680e..58c2782 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
+
+       ftoastr: fix comment again
+       * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
+       <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
+       Also, simplify example a bit by using flags = 0.
+
 2010-12-20  Bruno Haible  <bruno@clisp.org>
 
        round*, trunc*: Update documentation regarding glibc.
index edae494..c16a884 100644 (file)
@@ -39,8 +39,8 @@
 
    Example:
 
-     char buf[DBL_ABUFSIZE_BOUND];
-     int r = dtoastr (buf, sizeof buf, FTOASTR_UPPER_E, 0, 0.1);
+     char buf[DBL_BUFSIZE_BOUND];
+     int r = dtoastr (buf, sizeof buf, 0, 0, 0.1);
 
    In the C locale, this sets R to 3 and stores "0.1" into BUF.  */