ftoastr: fix comment
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 Dec 2010 07:05:24 +0000 (23:05 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 Dec 2010 07:06:03 +0000 (23:06 -0800)
* lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
<http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.

ChangeLog
lib/ftoastr.h

index 308b4509deb4d348fcc23a65821e7aee81b3dec7..9796a9bee24c1f47792483024180dea1264b139f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
+
+       ftoastr: fix comment
+       * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
+       <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
+
 2010-12-19  Bruno Haible  <bruno@clisp.org>
 
        isnan: Ensure it is a macro.
index fd7a802dbecb4767dcd7c9d437af82a72aeec51c..edae494dda7b2d4e8867839e757322b5bae60138 100644 (file)
@@ -40,7 +40,7 @@
    Example:
 
      char buf[DBL_ABUFSIZE_BOUND];
-     int r = dtoastr (buf, sizeof buf, "%*.*g", 0, 0.1);
+     int r = dtoastr (buf, sizeof buf, FTOASTR_UPPER_E, 0, 0.1);
 
    In the C locale, this sets R to 3 and stores "0.1" into BUF.  */