From 993f6d669869426b3e6026501d058532ec45c311 Mon Sep 17 00:00:00 2001 From: badcel <33569-badcel@users.noreply.gitlab.gnome.org> Date: Tue, 21 Feb 2023 22:19:56 +0100 Subject: [PATCH] g_type_name: Fix return annotation The function can return null so it should be annotated as nullable. --- gobject/gtype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gobject/gtype.c b/gobject/gtype.c index f49594135..dfb01eed1 100644 --- a/gobject/gtype.c +++ b/gobject/gtype.c @@ -3425,7 +3425,7 @@ g_type_default_interface_unref (gpointer g_iface) * other validly registered type ID, but randomized type IDs should * not be passed in and will most likely lead to a crash. * - * Returns: static type name or %NULL + * Returns: (nullable): static type name or %NULL */ const gchar * g_type_name (GType type)