changeset 13961:c1bf409392b8

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>.
author Paul Eggert <eggert@cs.ucla.edu>
date Sun, 19 Dec 2010 23:05:24 -0800
parents 51218504eb9d
children d08e3bdd07f9
files ChangeLog lib/ftoastr.h
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/lib/ftoastr.h
+++ b/lib/ftoastr.h
@@ -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.  */