From: Rusty Russell Date: Mon, 18 Aug 2014 17:07:19 +0000 (+0930) Subject: tal/str: use tal/grab_file not grab_file in example. X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=a7b28fafda0e5c119a2507ef2fd0d5b620cdb892 tal/str: use tal/grab_file not grab_file in example. Signed-off-by: Rusty Russell --- diff --git a/ccan/tal/str/_info b/ccan/tal/str/_info index 6fd94dc5..cb81c9e1 100644 --- a/ccan/tal/str/_info +++ b/ccan/tal/str/_info @@ -11,7 +11,7 @@ * * Example: * #include - * #include + * #include * #include * * // Dumb demo program to double-linespace a file. @@ -21,7 +21,7 @@ * char **lines; * * // Grab lines in file. - * textfile = grab_file(NULL, argv[1], NULL); + * textfile = grab_file(NULL, argv[1]); * if (!textfile) * err(1, "Failed reading %s", argv[1]); * lines = tal_strsplit(textfile, textfile, "\n", STR_EMPTY_OK);