summaryrefslogtreecommitdiff
path: root/glib/gstrfuncs.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2016-03-23 18:23:05 +0100
committerBastien Nocera <hadess@hadess.net>2016-04-04 15:06:57 +0200
commit283c565af6a8a68015a078776c10f7103ba2c485 (patch)
tree30a99db7e4292c6dc540d52b4ca00dd17bf03461 /glib/gstrfuncs.c
parentf45ec47be1244fd16be339dd5be37af3506e05ca (diff)
downloadglib-283c565af6a8a68015a078776c10f7103ba2c485.tar.gz
gstrfuncs: Document the behaviour of g_strjoinv()
The behaviour of g_strjoinv() isn't explicitely explained when the array contains less than 2 items. This removes the guesswork. https://bugzilla.gnome.org/show_bug.cgi?id=764092
Diffstat (limited to 'glib/gstrfuncs.c')
-rw-r--r--glib/gstrfuncs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/glib/gstrfuncs.c b/glib/gstrfuncs.c
index 975be0bb7..35491bb58 100644
--- a/glib/gstrfuncs.c
+++ b/glib/gstrfuncs.c
@@ -2539,6 +2539,10 @@ g_strdupv (gchar **str_array)
* optional @separator inserted between each of them. The returned string
* should be freed with g_free().
*
+ * If @str_array has no items, the return value will be an
+ * empty string. If @str_array contains a single item, @separator will not
+ * appear in the resulting string.
+ *
* Returns: a newly-allocated string containing all of the strings joined
* together, with @separator between them
*/