[glib/glib-2-42] ghash: minor docs tweak
- From: Matthias Clasen <matthiasc src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [glib/glib-2-42] ghash: minor docs tweak
 
- Date: Thu, 26 Feb 2015 03:48:08 +0000 (UTC)
 
commit 18d618b1c9f8116e371afbe99124470c705b0f33
Author: Ryan Lortie <desrt desrt ca>
Date:   Thu Dec 11 18:49:16 2014 -0500
    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.
 glib/ghash.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/ghash.c b/glib/ghash.c
index f597958..84335c6 100644
--- a/glib/ghash.c
+++ b/glib/ghash.c
@@ -1681,7 +1681,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
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]