X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Frfc822%2F_info;h=5a0a9c6a6080c050c35095867019026d0ce02ce5;hp=680f4991981fb3b5f8663b6981addbc6052dde38;hb=HEAD;hpb=992931f06cf25d24fe74b4c617753aef2de70426 diff --git a/ccan/rfc822/_info b/ccan/rfc822/_info index 680f4991..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;