[glib/wip/mjog/utf8-norm-missing-nullable-annotation: 336/336] g_utf8_normalize: Doc comment return missing nullable annotation



commit af9696caad9edfbfb7af634dd018cf4b8a0232a6
Author: Michael Gratton <mike vee net>
Date:   Wed Jun 26 09:40:12 2019 +1000

    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.

 glib/gunidecomp.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/glib/gunidecomp.c b/glib/gunidecomp.c
index 7ae7ab2f8..19ecdae36 100644
--- a/glib/gunidecomp.c
+++ b/glib/gunidecomp.c
@@ -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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]