X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fstrmap%2Fstrmap.h;h=8fabc359acc64e2d4a4603e7097cfe93b3b2be17;hp=cf77e94959d9cfe1960601be395900f3f9f71353;hb=516c47790828cfb892fecdbe03a6928c345d29b2;hpb=140cd1699215bdb2a849459644823b88ab7d42cf diff --git a/ccan/strmap/strmap.h b/ccan/strmap/strmap.h index cf77e949..8fabc359 100644 --- a/ccan/strmap/strmap.h +++ b/ccan/strmap/strmap.h @@ -156,7 +156,7 @@ void strmap_clear_(struct strmap *map); * @handle's prototype should be: * bool @handle(const char *member, type value, typeof(arg) arg) * - * If @handle returns true, the iteration will stop. + * If @handle returns false, the iteration will stop. * You should not alter the map within the @handle function! * * Example: @@ -167,9 +167,9 @@ void strmap_clear_(struct strmap *map); * { * // Only dump out num nodes. * if (*(num--) == 0) - * return true; + * return false; * printf("%s=>%i\n", member, *value); - * return false; + * return true; * } * * static void dump_map(const struct strmap_intp *map)