From 697dacdadf97bc039ee4de69b48a52fa7cebecfc Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 21 Jun 2019 17:57:35 +0100 Subject: [PATCH] goption: Add missing (array) annotation to add_main_entries() Signed-off-by: Philip Withnall Fixes: #1813 --- glib/goption.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glib/goption.c b/glib/goption.c index 183e9d9d3..3520c11e6 100644 --- a/glib/goption.c +++ b/glib/goption.c @@ -640,7 +640,7 @@ g_option_context_get_main_group (GOptionContext *context) /** * g_option_context_add_main_entries: * @context: a #GOptionContext - * @entries: a %NULL-terminated array of #GOptionEntrys + * @entries: (array zero-terminated=1): a %NULL-terminated array of #GOptionEntrys * @translation_domain: (nullable): a translation domain to use for translating * the `--help` output for the options in @entries * with gettext(), or %NULL @@ -2392,7 +2392,7 @@ g_option_group_unref (GOptionGroup *group) /** * g_option_group_add_entries: * @group: a #GOptionGroup - * @entries: a %NULL-terminated array of #GOptionEntrys + * @entries: (array zero-terminated=1): a %NULL-terminated array of #GOptionEntrys * * Adds the options specified in @entries to @group. *