mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 18:26:19 +01:00
g_utf8_normalize: Doc comment return missing nullable annotation
The return value for g_utf8_normalize may be null, but the return type is not annotated as such. This is important for language bindings for langs that are about nullability, such as Vala and Haskell.
This commit is contained in:
parent
f2a979cbaa
commit
af9696caad
@ -521,9 +521,9 @@ _g_utf8_normalize_wc (const gchar *str,
|
|||||||
* a legacy encoding or pass it to a system with
|
* a legacy encoding or pass it to a system with
|
||||||
* less capable Unicode handling.
|
* less capable Unicode handling.
|
||||||
*
|
*
|
||||||
* Returns: a newly allocated string, that is the
|
* Returns: (nullable): a newly allocated string, that
|
||||||
* normalized form of @str, or %NULL if @str is not
|
* is the normalized form of @str, or %NULL if @str
|
||||||
* valid UTF-8.
|
* is not valid UTF-8.
|
||||||
**/
|
**/
|
||||||
gchar *
|
gchar *
|
||||||
g_utf8_normalize (const gchar *str,
|
g_utf8_normalize (const gchar *str,
|
||||||
|
Loading…
Reference in New Issue
Block a user