]> git.ozlabs.org Git - ccan/blobdiff - ccan/strset/strset.h
endian: add constant versions.
[ccan] / ccan / strset / strset.h
index 05e1e358a8ee2f56fb82a7b1124fc15a783c7013..9d6f1ae343f5b4904e3eaf725d26c6a89cc7f331 100644 (file)
@@ -113,16 +113,16 @@ void strset_clear(struct strset *set);
  * @arg: the argument for the function (types should match).
  *
  * You should not alter the set within the @handle function!  If it returns
- * true, the iteration will stop.
+ * false, the iteration will stop.
  *
  * Example:
  *     static bool dump_some(const char *member, int *num)
  *     {
  *             // Only dump out num nodes.
  *             if (*(num--) == 0)
- *                     return true;
+ *                     return false;
  *             printf("%s\n", member);
- *             return false;
+ *             return true;
  *     }
  *
  *     static void dump_set(const struct strset *set)