Documentation fix: g_variant_get() returns void

https://bugzilla.gnome.org/show_bug.cgi?id=747107
This commit is contained in:
Thomas Perl 2015-03-31 14:11:02 +02:00 committed by Matthias Clasen
parent 985ae37d19
commit 59ec2912e4

View File

@ -937,7 +937,7 @@ value2 = g_variant_new ("(@(iii)*)", value1, g_variant_new_string ("foo"));
GVariant *value;
value = g_variant_new ("&s", "hello world");
str = g_variant_get (value, "&s", &str);
g_variant_get (value, "&s", &str);
g_print ("string is: %s\n", str);
/* no need to free str */
}]]></programlisting></informalexample>