commit cac10b52fcb3e89b1a2797e207874ea1e6adf884
parent 4b147217ac2b5a115013bb27dcc478d7447eb717
Author: James Prestwood <prestwoj@gmail.com>
Date: Fri, 17 Nov 2023 06:12:27 -0800
json: fix comment typo, "json_object_is_valid"
This should be json_iter_is_valid.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/json.h b/src/json.h
@@ -85,7 +85,7 @@ void json_iter_init(struct json_iter *iter, struct json_contents *c);
* other types are encountered.
*
* JSON_OPTIONAL string values will point to NULL if not found
- * JSON_OPTIONAL objects/primitives can be checked with json_object_is_valid.
+ * JSON_OPTIONAL objects/primitives can be checked with json_iter_is_valid.
*/
bool json_iter_parse(struct json_iter *iter, enum json_type type, ...);