From 7d090d151047db30f9093593e5b3c984020b1328 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Mon, 20 Mar 2023 12:16:54 +0000 Subject: [PATCH] gvariant: Document failure behaviour of g_variant_dict_lookup() better Signed-off-by: Philip Withnall Fixes: #919 --- glib/gvariant.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glib/gvariant.c b/glib/gvariant.c index cd4c21ced..be2ffb860 100644 --- a/glib/gvariant.c +++ b/glib/gvariant.c @@ -4036,7 +4036,8 @@ g_variant_dict_init (GVariantDict *dict, * * This function is a wrapper around g_variant_dict_lookup_value() and * g_variant_get(). In the case that %NULL would have been returned, - * this function returns %FALSE. Otherwise, it unpacks the returned + * this function returns %FALSE and does not modify the values of the arguments + * passed in to @.... Otherwise, it unpacks the returned * value and returns %TRUE. * * @format_string determines the C types that are used for unpacking the