[glib] Documentation fix: g_variant_get() returns void



commit 59ec2912e481e158a0ccc8efd6ab82acc6deac9a
Author: Thomas Perl <m thp io>
Date:   Tue Mar 31 14:11:02 2015 +0200

    Documentation fix: g_variant_get() returns void
    
    https://bugzilla.gnome.org/show_bug.cgi?id=747107

 docs/reference/glib/gvariant-varargs.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/docs/reference/glib/gvariant-varargs.xml b/docs/reference/glib/gvariant-varargs.xml
index a253865..d4b68f0 100644
--- a/docs/reference/glib/gvariant-varargs.xml
+++ b/docs/reference/glib/gvariant-varargs.xml
@@ -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>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]