g_type_name: Fix return annotation

The function can return null so it should be annotated as nullable.
This commit is contained in:
badcel 2023-02-21 22:19:56 +01:00
parent bd2ccc2f69
commit 993f6d6698
No known key found for this signature in database
GPG Key ID: 70A8373EEB2233E0

View File

@ -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)