[glib] Fix an example
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Fix an example
- Date: Thu, 16 Aug 2012 21:21:00 +0000 (UTC)
commit 317d91d06bc3bcdef91f98a7a75489977aa154e4
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Aug 16 17:21:03 2012 -0400
Fix an example
Pointed out by Chandni Verma in
https://bugzilla.gnome.org/show_bug.cgi?id=682025
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 2aec44e..3f34d53 100644
--- 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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]