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:
Michael Gratton 2019-06-26 09:40:12 +10:00 committed by Michael James Gratton
parent f2a979cbaa
commit af9696caad

View File

@ -521,9 +521,9 @@ _g_utf8_normalize_wc (const gchar *str,
* a legacy encoding or pass it to a system with
* less capable Unicode handling.
*
* Returns: a newly allocated string, that is the
* normalized form of @str, or %NULL if @str is not
* valid UTF-8.
* Returns: (nullable): a newly allocated string, that
* is the normalized form of @str, or %NULL if @str
* is not valid UTF-8.
**/
gchar *
g_utf8_normalize (const gchar *str,