From aae9a3cdd148b2e8444de85e6a1e9ee2c58f1986 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Sat, 29 Jan 2022 23:35:52 -0800 Subject: [PATCH] girepository: Fix documentation comments It was driving me crazy that g_type_info_get_array_length() claimed to return an array length. --- gitypeinfo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gitypeinfo.c b/gitypeinfo.c index e90f9463c..4fb7dddd2 100644 --- a/gitypeinfo.c +++ b/gitypeinfo.c @@ -221,8 +221,8 @@ g_type_info_get_interface (GITypeInfo *info) * g_type_info_get_array_length: * @info: a #GITypeInfo * - * Obtain the array length of the type. The type tag must be a - * #GI_TYPE_TAG_ARRAY or -1 will returned. + * Obtain the position of the argument which gives the array length of the type. + * The type tag must be a #GI_TYPE_TAG_ARRAY or -1 will be returned. * * Returns: the array length, or -1 if the type is not an array */ @@ -256,7 +256,7 @@ g_type_info_get_array_length (GITypeInfo *info) * @info: a #GITypeInfo * * Obtain the fixed array size of the type. The type tag must be a - * #GI_TYPE_TAG_ARRAY or -1 will returned. + * #GI_TYPE_TAG_ARRAY or -1 will be returned. * * Returns: the size or -1 if it's not an array */ @@ -290,7 +290,7 @@ g_type_info_get_array_fixed_size (GITypeInfo *info) * @info: a #GITypeInfo * * Obtain if the last element of the array is %NULL. The type tag must be a - * #GI_TYPE_TAG_ARRAY or %FALSE will returned. + * #GI_TYPE_TAG_ARRAY or %FALSE will be returned. * * Returns: %TRUE if zero terminated */