X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fstrset%2F_info;h=b5df9dfa5dc9e1a1aca0c52b1b3b479017ace365;hb=56023cca5f66a40646a1e807c3d10af6e5913623;hp=81e8f53cca08b73a3c1322d2da1cb6b7d4064c9a;hpb=ab83de953730f5e5e571dbf69ffb3cc685a102dc;p=ccan diff --git a/ccan/strset/_info b/ccan/strset/_info index 81e8f53c..b5df9dfa 100644 --- a/ccan/strset/_info +++ b/ccan/strset/_info @@ -22,7 +22,7 @@ * static bool dump(const char *member, void *unused) * { * printf("%s ", member); - * return false; + * return true; // Keep going with iteration. * } * * int main(void) @@ -38,7 +38,7 @@ * for (word = strtok(file, " \t\r\n"); * word; * word = strtok(NULL, " \t\r\n")) { - * strset_set(&words, word); + * strset_add(&words, word); * } * strset_iterate(&words, dump, NULL); * printf("\n");