ghash: minor docs tweak

We should not advise people to cast the result of
g_hash_table_get_keys_as_array() to a type that looks suitable for use
with g_strfreev().  Advise to use (const gchar **) instead.
This commit is contained in:
Ryan Lortie 2014-12-11 18:49:16 -05:00
parent ae1b6ecd9d
commit de65723877

View File

@ -1736,7 +1736,7 @@ g_hash_table_get_keys (GHashTable *hash_table)
* %NULL was used as the value for a key.
*
* Note: in the common case of a string-keyed #GHashTable, the return
* value of this function can be conveniently cast to (gchar **).
* value of this function can be conveniently cast to (const gchar **).
*
* You should always free the return result with g_free(). In the
* above-mentioned case of a string-keyed hash table, it may be