From d44eac3b66cf8977b9ebb92c698491f82c2d04aa Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sun, 13 Dec 2020 07:07:24 +1100 Subject: [PATCH] docs: fix simple typo, orignal -> original There is a small typo in rax.c. Should read `original` rather than `orignal`. --- rax.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rax.c b/rax.c index 7dcf045..ee777d1 100644 --- a/rax.c +++ b/rax.c @@ -259,7 +259,7 @@ raxNode *raxAddChild(raxNode *n, unsigned char c, raxNode **childptr, raxNode ** size_t curlen = raxNodeCurrentLength(n); n->size++; size_t newlen = raxNodeCurrentLength(n); - n->size--; /* For now restore the orignal size. We'll update it only on + n->size--; /* For now restore the original size. We'll update it only on success at the end. */ /* Alloc the new child we will link to 'n'. */ @@ -666,7 +666,7 @@ int raxGenericInsert(rax *rax, unsigned char *s, size_t len, void *data, void ** * * 3. Trim the current node to contain the first $SPLITPOS characters. * As usually if the new node length is just 1, set iscompr to 0. - * Take the iskey / associated value as it was in the orignal node. + * Take the iskey / associated value as it was in the original node. * Fix the parent's reference. * * 4. Set the postfix node as the only child pointer of the trimmed