diff --git a/glib/ghash.c b/glib/ghash.c index 3f90399f5..6ae57c7f1 100644 --- a/glib/ghash.c +++ b/glib/ghash.c @@ -368,16 +368,16 @@ g_hash_table_new_full (GHashFunc hash_func, * Initializes a key/value pair iterator and associates it with * @hash_table. Modifying the hash table after calling this function * invalidates the returned iterator. - * - * + * |[ * GHashTableIter iter; * gpointer key, value; * - * g_hash_table_iter_init(&iter, hash_table); - * while (g_hash_table_iter_next(&iter, &key, &value)) { - * /* do something with key and value */ - * } - * + * g_hash_table_iter_init (&iter, hash_table); + * while (g_hash_table_iter_next (&iter, &key, &value)) + * { + * /* do something with key and value */ + * } + * ]| * * Since: 2.16 **/