]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
doc: Fix ngettext usage example
authorDaiki Ueno <ueno@gnu.org>
Wed, 23 Mar 2016 01:20:12 +0000 (10:20 +0900)
committerDaiki Ueno <ueno@gnu.org>
Wed, 23 Mar 2016 01:20:12 +0000 (10:20 +0900)
* gettext-tools/doc/gettext.texi (Plural forms): Fix positional argument
syntax in the C example.  Reported by Jonathan Leffler in:
http://lists.gnu.org/archive/html/bug-gettext/2016-03/msg00002.html

gettext-tools/doc/gettext.texi

index e5d2aec3186c74bcb2a29d0156eef2c3f5e8731d..1e332beaf37e7d8eff2a5a259b8b4158efcc4215 100644 (file)
@@ -6133,8 +6133,8 @@ argument.  Instead, you have to reorder the arguments so that @samp{n}
 comes last:
 
 @smallexample
-printf (ngettext ("%$2d file removed from directory %$1s",
-                  "%$2d files removed from directory %$1s",
+printf (ngettext ("%2$d file removed from directory %1$s",
+                  "%2$d files removed from directory %1$s",
                   n),
         dir, n);
 @end smallexample