X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Frfc822%2F_info;h=5a0a9c6a6080c050c35095867019026d0ce02ce5;hp=7c3ca08eda7a0a3affc069257b1db31305f3b24c;hb=HEAD;hpb=9a483e66096528915f59d875931a48eab523ca82 diff --git a/ccan/rfc822/_info b/ccan/rfc822/_info index 7c3ca08e..5a0a9c6a 100644 --- a/ccan/rfc822/_info +++ b/ccan/rfc822/_info @@ -25,9 +25,9 @@ * it too). * * Example: - * // Given '' outputs 'body' - * // Given 'From' outputs ' ' - * // Given 'To' outputs ' ' + * // Outputs "body\n" + * // Given "From" outputs + * // Given "To" outputs * char buf[] = "From: \n" * "To: \n\n" * "body\n"; @@ -35,7 +35,7 @@ * struct bytestring out; * * msg = rfc822_start(NULL, buf, sizeof(buf)); - * if (!argv[1] || !argv[1][0]) + * if (!argv[1]) * out = rfc822_body(msg); * else { * struct rfc822_header *hdr; @@ -65,7 +65,7 @@ int main(int argc, char *argv[]) printf("ccan/list\n"); printf("ccan/str\n"); printf("ccan/bytestring\n"); - printf("ccan/memmem\n"); + printf("ccan/mem\n"); return 0; }