[glib] Realign the hash set example with added api
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Realign the hash set example with added api
- Date: Mon, 9 Jan 2012 20:23:42 +0000 (UTC)
commit 39dc681fc7d9e336d081d0d6559e6dd3454965a0
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jan 6 20:48:04 2012 -0500
Realign the hash set example with added api
Change the name of set_insert to set_add, to better match the
newly added g_hash_table_add.
glib/ghash.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/glib/ghash.c b/glib/ghash.c
index 1fbaaf4..93655fd 100644
--- a/glib/ghash.c
+++ b/glib/ghash.c
@@ -102,10 +102,10 @@
* }
*
* void
- * set_insert (GHashTable *set,
- * gpointer element)
+ * set_add (GHashTable *set,
+ * gpointer element)
* {
- * g_hash_table_insert (set, element, element);
+ * g_hash_table_replace (set, element, element);
* }
*
* gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]