From e28469783e6c08c4746b4b9641c4e9d305da3855 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 25 Jul 2023 11:11:43 +0930 Subject: [PATCH] common: fix wrong comment on json_scan() return. Signed-off-by: Rusty Russell --- common/json_parse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/json_parse.h b/common/json_parse.h index 0c45a925b..27cae148a 100644 --- a/common/json_parse.h +++ b/common/json_parse.h @@ -122,7 +122,7 @@ bool json_tok_channel_id(const char *buffer, const jsmntok_t *tok, struct channel_id *cid); /* Guide is % for a token: each must be followed by JSON_SCAN(). - * Returns NULL on error (asserts() on bad guide). */ + * Returns NULL on success, otherwise errmsg (asserts() on bad guide). */ const char *json_scan(const tal_t *ctx, const char *buffer, const jsmntok_t *tok,