From: Paul Eggert Date: Tue, 21 Dec 2010 07:48:19 +0000 (-0800) Subject: ftoastr: fix comment again X-Git-Tag: v0.1~3517 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=d11de3302086268ee41416ec650fd90536ac5cf6;p=gnulib.git ftoastr: fix comment again * lib/ftoastr.h: Fix typo in comment. Noted by Ben Pfaff in . Also, simplify example a bit by using flags = 0. --- diff --git a/ChangeLog b/ChangeLog index 55e680e0c..58c278232 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-12-20 Paul Eggert + + ftoastr: fix comment again + * lib/ftoastr.h: Fix typo in comment. Noted by Ben Pfaff in + . + Also, simplify example a bit by using flags = 0. + 2010-12-20 Bruno Haible round*, trunc*: Update documentation regarding glibc. diff --git a/lib/ftoastr.h b/lib/ftoastr.h index edae494dd..c16a884f2 100644 --- 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. */