Commit 0112c6a1 authored by Rusty Russell's avatar Rusty Russell

tal: fix tal_check description

Cut & paste bug.
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 3e44cbb7
...@@ -355,13 +355,16 @@ void tal_cleanup(void); ...@@ -355,13 +355,16 @@ void tal_cleanup(void);
/** /**
* tal_check - set the allocation or error functions to use * tal_check - sanity check a tal context and its children.
* @ctx: a tal context, or NULL. * @ctx: a tal context, or NULL.
* @errorstr: a string to prepend calls to error_fn, or NULL. * @errorstr: a string to prepend calls to error_fn, or NULL.
* *
* This sanity-checks a tal tree (unless NDEBUG is defined, in which case * This sanity-checks a tal tree (unless NDEBUG is defined, in which case
* it simply returns true). If errorstr is not null, error_fn is called * it simply returns true). If errorstr is not null, error_fn is called
* when a problem is found, otherwise it is not. * when a problem is found, otherwise it is not.
*
* See also:
* tal_set_backend()
*/ */
bool tal_check(const tal_t *ctx, const char *errorstr); bool tal_check(const tal_t *ctx, const char *errorstr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment