changeset 13970:c1b6463dfecc

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.
author Paul Eggert <eggert@cs.ucla.edu>
date Mon, 20 Dec 2010 23:48:19 -0800
parents 04d6758511bc
children 9679af58bfe7
files ChangeLog lib/ftoastr.h
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/lib/ftoastr.h
+++ b/lib/ftoastr.h
@@ -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.  */