projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8a5fc2
)
Fix an example
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 16 Aug 2012 21:21:03 +0000
(17:21 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 16 Aug 2012 21:21:03 +0000
(17:21 -0400)
Pointed out by Chandni Verma in
https://bugzilla.gnome.org/show_bug.cgi?id=682025
docs/reference/glib/gvariant-varargs.xml
patch
|
blob
|
history
diff --git
a/docs/reference/glib/gvariant-varargs.xml
b/docs/reference/glib/gvariant-varargs.xml
index 2aec44e559cff2a4ab4cd7c3d4f1a86a8bbf7177..3f34d53368dc90cf50ffb77306e7fcd45c71ae4a 100644
(file)
--- a/
docs/reference/glib/gvariant-varargs.xml
+++ b/
docs/reference/glib/gvariant-varargs.xml
@@
-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>