From c4fc2584241dadeedee7b21bd24ca5708d6318e8 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 24 Dec 2011 14:26:24 +0100 Subject: [PATCH] docs: Clarify non-NUL requirement in g_utf8_validate() UTF8 validation is not about your character on a dating site, so don't talk about meeting. https://bugzilla.gnome.org/show_bug.cgi?id=666803 --- glib/gutf8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/gutf8.c b/glib/gutf8.c index a7bc343f0..17d42733f 100644 --- a/glib/gutf8.c +++ b/glib/gutf8.c @@ -1606,7 +1606,7 @@ fast_validate_len (const char *str, * being validated otherwise). * * Note that g_utf8_validate() returns %FALSE if @max_len is - * positive and NUL is met before @max_len bytes have been read. + * positive and any of the @max_len bytes are NUL. * * Returns %TRUE if all of @str was valid. Many GLib and GTK+ * routines require valid UTF-8 as input;