fix bad DBusMessageIter doc example
authorRichard A. Hankins <richard.a.hankins@gmail.com>
Wed, 19 Jan 2011 15:59:24 +0000 (15:59 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 19 Jan 2011 16:01:49 +0000 (16:01 +0000)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=11190
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
dbus/dbus-message.c

index b19697e..442ec2a 100644 (file)
@@ -1979,7 +1979,7 @@ dbus_message_iter_next (DBusMessageIter *iter)
  * #DBUS_TYPE_INVALID. You can thus write a loop as follows:
  *
  * @code
- * dbus_message_iter_init (&iter);
+ * dbus_message_iter_init (message, &iter);
  * while ((current_type = dbus_message_iter_get_arg_type (&iter)) != DBUS_TYPE_INVALID)
  *   dbus_message_iter_next (&iter);
  * @endcode