mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 03:02:10 +01:00
Fix an example
Pointed out by Chandni Verma in https://bugzilla.gnome.org/show_bug.cgi?id=682025
This commit is contained in:
parent
f8a5fc2e2e
commit
317d91d06b
@ -932,7 +932,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 ("&s", &str);
|
||||
str = g_variant_get (value, "&s", &str);
|
||||
g_print ("string is: %s\n", str);
|
||||
/* no need to free str */
|
||||
}]]></programlisting></informalexample>
|
||||
|
Loading…
x
Reference in New Issue
Block a user