From 099b588be28e87a293f2360c9a20c59cb835c040 Mon Sep 17 00:00:00 2001 From: shuoer86 <129674997+shuoer86@users.noreply.github.com> Date: Fri, 5 Jan 2024 23:26:30 +0800 Subject: [PATCH] nostrdb/Fix typos Closes: https://github.com/damus-io/nostrdb/pull/25 Signed-off-by: William Casarin --- nostrdb/src/bolt11/tal.h | 4 ++-- nostrdb/src/nostrdb.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nostrdb/src/bolt11/tal.h b/nostrdb/src/bolt11/tal.h index 8cd7670f..8daafa3d 100644 --- a/nostrdb/src/bolt11/tal.h +++ b/nostrdb/src/bolt11/tal.h @@ -387,7 +387,7 @@ tal_t *tal_parent(const tal_t *ctx); * @type: the type (should match type of @p!) * @p: the tal array to copy (or resized & reparented if take()) * - * The comon case of duplicating an entire tal array. + * The common case of duplicating an entire tal array. */ #define tal_dup_talarr(ctx, type, p) \ ((type *)tal_dup_talarr_((ctx), tal_typechk_(p, type *), \ @@ -418,7 +418,7 @@ tal_t *tal_parent(const tal_t *ctx); * @error_fn: called on errors or NULL (default is abort) * * The defaults are set up so tal functions never return NULL, but you - * can override erorr_fn to change that. error_fn can return, and is + * can override error_fn to change that. error_fn can return, and is * called if alloc_fn or resize_fn fail. * * If any parameter is NULL, that function is unchanged. diff --git a/nostrdb/src/nostrdb.c b/nostrdb/src/nostrdb.c index 69ff8e37..875d81c1 100644 --- a/nostrdb/src/nostrdb.c +++ b/nostrdb/src/nostrdb.c @@ -268,7 +268,7 @@ static int ndb_make_text_search_key(unsigned char *buf, int bufsize, // TODO: need update this to uint64_t // we push this first because our query function can pull this off - // quicky to check matches + // quickly to check matches if (!cursor_push_varint(&cur, (int32_t)note_id)) return 0;