summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2016-03-23 10:20:12 +0900
committerDaiki Ueno <ueno@gnu.org>2016-03-23 10:20:12 +0900
commit009c1218593a5f5a6d132b3694e4e679572eff9f (patch)
treef1445adbe722cf22472b0db6f4e11ad0dc03b773
parent2328b5b5a7e227ab1fb4dc1bccb39948e721aa76 (diff)
downloadexternal_gettext-009c1218593a5f5a6d132b3694e4e679572eff9f.zip
external_gettext-009c1218593a5f5a6d132b3694e4e679572eff9f.tar.gz
external_gettext-009c1218593a5f5a6d132b3694e4e679572eff9f.tar.bz2
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
-rw-r--r--gettext-tools/doc/gettext.texi4
1 files 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