Commit 2e131e31 authored by Nick Mathewson's avatar Nick Mathewson
Browse files

r15861@catbus: nickm | 2007-10-16 13:10:22 -0400

 Fix example use of hash table iterators


svn:r11991
parent 0dab1a14
......@@ -956,11 +956,11 @@ strmap_remove_lc(strmap_t *map, const char *key)
* strmap_iter_get(iter, &key, &val);
* cp = (char*)val;
* if (!*cp) {
* iter = strmap_iter_next_rmv(iter);
* iter = strmap_iter_next_rmv(map,iter);
* free(val);
* } else {
* for (;*cp;cp++) *cp = TOR_TOUPPER(*cp);
* iter = strmap_iter_next(iter);
* iter = strmap_iter_next(map,iter);
* }
* }
* \endcode
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment