gvariant: Fix doc for g_variant_new_object_path

The parameter is named 'object_path', not 'string'.
This commit is contained in:
Arnaud Rebillout 2023-04-21 21:56:41 +07:00
parent 9308f2c353
commit edb85b99f6

View File

@ -1352,8 +1352,8 @@ g_variant_new_printf (const gchar *format_string,
* g_variant_new_object_path:
* @object_path: a normal C nul-terminated string
*
* Creates a D-Bus object path #GVariant with the contents of @string.
* @string must be a valid D-Bus object path. Use
* Creates a D-Bus object path #GVariant with the contents of @object_path.
* @object_path must be a valid D-Bus object path. Use
* g_variant_is_object_path() if you're not sure.
*
* Returns: (transfer none): a floating reference to a new object path #GVariant instance