diff options
author | Sébastien Wilmet <swilmet@gnome.org> | 2014-07-03 19:53:51 +0200 |
---|---|---|
committer | Sébastien Wilmet <swilmet@gnome.org> | 2014-07-04 17:03:50 +0200 |
commit | 97f34bacce1fa59c6b3ee05bdbc2ab96a8ad9a4e (patch) | |
tree | 84bfa65b6dfc5e984067f06997996292b0728d11 | |
parent | 48c7d041e2d046462156056d297f609465fce6ab (diff) |
doc: small improvement and fixes
- Add an example to g_strsplit(), like it is done for g_strsplit_set().
- GTK-Doc generates a list if a "1." is at the beginning of a line.
https://bugzilla.gnome.org/show_bug.cgi?id=732704
-rw-r--r-- | glib/giochannel.c | 4 | ||||
-rw-r--r-- | glib/gstrfuncs.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/glib/giochannel.c b/glib/giochannel.c index 176523324..19fc1d4e7 100644 --- a/glib/giochannel.c +++ b/glib/giochannel.c @@ -69,8 +69,8 @@ * events you are interested in on the #GIOChannel, and provide a * function to be called whenever these events occur. * - * #GIOChannel instances are created with an initial reference count of - * 1. g_io_channel_ref() and g_io_channel_unref() can be used to + * #GIOChannel instances are created with an initial reference count of 1. + * g_io_channel_ref() and g_io_channel_unref() can be used to * increment or decrement the reference count respectively. When the * reference count falls to 0, the #GIOChannel is freed. (Though it * isn't closed automatically, unless it was created using diff --git a/glib/gstrfuncs.c b/glib/gstrfuncs.c index 7daee73dc..f33f84b68 100644 --- a/glib/gstrfuncs.c +++ b/glib/gstrfuncs.c @@ -2246,6 +2246,10 @@ g_strchomp (gchar *string) * @delimiter. If @max_tokens is reached, the remainder of @string is * appended to the last token. * + * As an example, the result of g_strsplit (":a:bc::d:", ":", -1) is a + * %NULL-terminated vector containing the six strings "", "a", "bc", "", "d" + * and "". + * * As a special case, the result of splitting the empty string "" is an empty * vector, not a vector containing a single string. The reason for this * special case is that being able to represent a empty vector is typically @@ -2325,7 +2329,7 @@ g_strsplit (const gchar *string, * %NULL-terminated vector containing the three strings "abc", "def", * and "ghi". * - * The result if g_strsplit_set (":def/ghi:", ":/", -1) is a %NULL-terminated + * The result of g_strsplit_set (":def/ghi:", ":/", -1) is a %NULL-terminated * vector containing the four strings "", "def", "ghi", and "". * * As a special case, the result of splitting the empty string "" is an empty |