X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fstrset%2F_info;h=1c7426e66973c2b7b3687ab1d3aca38d689848c9;hb=7471ecd79174306ee976a4ecc09cc2b9ebb4b501;hp=81e8f53cca08b73a3c1322d2da1cb6b7d4064c9a;hpb=ab83de953730f5e5e571dbf69ffb3cc685a102dc;p=ccan diff --git a/ccan/strset/_info b/ccan/strset/_info index 81e8f53c..1c7426e6 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"); @@ -47,7 +47,7 @@ * // Given "foo bar" outputs "bar foo " * // Given "foo foo bar" outputs "bar foo " * - * License: Public domain (but some dependencies are LGPL!) + * License: CC0 (but some dependencies are LGPL!) * Author: Rusty Russell * Ccanlint: * license_depends_compat FAIL