From 009c1218593a5f5a6d132b3694e4e679572eff9f Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Wed, 23 Mar 2016 10:20:12 +0900 Subject: doc: Fix ngettext usage example * 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gettext-tools/doc/gettext.texi b/gettext-tools/doc/gettext.texi index e5d2aec..1e332be 100644 --- a/gettext-tools/doc/gettext.texi +++ b/gettext-tools/doc/gettext.texi @@ -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 -- cgit v1.1