diff options
author | Matthias Clasen <mclasen@redhat.com> | 2012-01-06 20:48:04 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2012-01-09 15:23:25 -0500 |
commit | 39dc681fc7d9e336d081d0d6559e6dd3454965a0 (patch) | |
tree | 639cd98e521d50fbbc359528a1cb385821da4df2 | |
parent | 875ffc41b72291cc0f2d3efae905cb0b380bb210 (diff) | |
download | glib-39dc681fc7d9e336d081d0d6559e6dd3454965a0.tar.gz |
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.
-rw-r--r-- | glib/ghash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/glib/ghash.c b/glib/ghash.c index 1fbaaf464..93655fd30 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 |