diff --git a/gobject/genums.c b/gobject/genums.c index 1623502e2..97980e1af 100644 --- a/gobject/genums.c +++ b/gobject/genums.c @@ -232,9 +232,9 @@ g_flags_register_static (const gchar *name, * g_enum_complete_type_info: * @g_enum_type: the type identifier of the type being completed * @info: (out callee-allocates): the #GTypeInfo struct to be filled in - * @const_values: An array of #GEnumValue structs for the possible - * enumeration values. The array is terminated by a struct with all - * members being 0. + * @const_values: (array zero-terminated=1): An array of #GEnumValue + * structs for the possible enumeration values. The array is terminated + * by a struct with all members being 0. * * This function is meant to be called from the `complete_type_info` * function of a #GTypePlugin implementation, as in the following @@ -278,9 +278,9 @@ g_enum_complete_type_info (GType g_enum_type, * g_flags_complete_type_info: * @g_flags_type: the type identifier of the type being completed * @info: (out callee-allocates): the #GTypeInfo struct to be filled in - * @const_values: An array of #GFlagsValue structs for the possible - * enumeration values. The array is terminated by a struct with all - * members being 0. + * @const_values: (array zero-terminated=1): An array of #GFlagsValue + * structs for the possible enumeration values. The array is terminated + * by a struct with all members being 0. * * This function is meant to be called from the complete_type_info() * function of a #GTypePlugin implementation, see the example for diff --git a/gobject/gtypemodule.c b/gobject/gtypemodule.c index b7f61c674..576ecdcba 100644 --- a/gobject/gtypemodule.c +++ b/gobject/gtypemodule.c @@ -525,10 +525,9 @@ g_type_module_add_interface (GTypeModule *module, * g_type_module_register_enum: * @module: (nullable): a #GTypeModule * @name: name for the type - * @const_static_values: an array of #GEnumValue structs for the - * possible enumeration values. The array is - * terminated by a struct with all members being - * 0. + * @const_static_values: (array zero-terminated=1): an array of #GEnumValue + * structs for the possible enumeration values. The array is terminated by a + * struct with all members being 0. * * Looks up or registers an enumeration that is implemented with a particular * type plugin. If a type with name @type_name was previously registered, @@ -567,10 +566,9 @@ g_type_module_register_enum (GTypeModule *module, * g_type_module_register_flags: * @module: (nullable): a #GTypeModule * @name: name for the type - * @const_static_values: an array of #GFlagsValue structs for the - * possible flags values. The array is - * terminated by a struct with all members being - * 0. + * @const_static_values: (array zero-terminated=1): an array of #GFlagsValue + * structs for the possible flags values. The array is terminated by a struct + * with all members being 0. * * Looks up or registers a flags type that is implemented with a particular * type plugin. If a type with name @type_name was previously registered,