diff --git a/docs/reference/glib/gvariant-varargs.xml b/docs/reference/glib/gvariant-varargs.xml
index 702235c34..2eb945fe8 100644
--- a/docs/reference/glib/gvariant-varargs.xml
+++ b/docs/reference/glib/gvariant-varargs.xml
@@ -622,7 +622,7 @@ y = g_variant_get_variant (x);]]>
(GVariantIter **)).
A new heap-allocated iterator is created and returned, initialised for iterating over the elements of the array.
This iterator should be freed when you are done with it, using
- g_variant_iter_unref().
+ g_variant_iter_free().
NULL may also be given to indicate that the value of the array
should be ignored.
@@ -633,12 +633,13 @@ y = g_variant_get_variant (x);]]>
+ g_print ("%s\n", str);
+ g_variant_iter_free (iter);
+}
+
+g_variant_unref (value);]]>
@@ -814,7 +817,7 @@ value2 = g_variant_new ("()");