mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
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:
parent
ae1b6ecd9d
commit
de65723877
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user