Browse Source

tal/str: use tal/grab_file not grab_file in example.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell 11 years ago
parent
commit
a7b28fafda
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ccan/tal/str/_info

+ 2 - 2
ccan/tal/str/_info

@@ -11,7 +11,7 @@
  *
  *
  * Example:
  * Example:
  *	#include <ccan/tal/str/str.h>
  *	#include <ccan/tal/str/str.h>
- *	#include <ccan/grab_file/grab_file.h>
+ *	#include <ccan/tal/grab_file/grab_file.h>
  *	#include <err.h>
  *	#include <err.h>
  *
  *
  *	// Dumb demo program to double-linespace a file.
  *	// Dumb demo program to double-linespace a file.
@@ -21,7 +21,7 @@
  *		char **lines;
  *		char **lines;
  *
  *
  *		// Grab lines in file.
  *		// Grab lines in file.
- *		textfile = grab_file(NULL, argv[1], NULL);
+ *		textfile = grab_file(NULL, argv[1]);
  *		if (!textfile)
  *		if (!textfile)
  *			err(1, "Failed reading %s", argv[1]);
  *			err(1, "Failed reading %s", argv[1]);
  *		lines = tal_strsplit(textfile, textfile, "\n", STR_EMPTY_OK);
  *		lines = tal_strsplit(textfile, textfile, "\n", STR_EMPTY_OK);