summaryrefslogtreecommitdiff
path: root/src/rax.c
diff options
context:
space:
mode:
authora2tt <usera2tt@gmail.com>2022-03-09 20:58:23 +0900
committerGitHub <noreply@github.com>2022-03-09 13:58:23 +0200
commit86ca9b25e22174ef6a5ce7b54b85b100bb4bc919 (patch)
treeb0ba222f598bf2abde3abb8102baddcb1f75b80a /src/rax.c
parent24da71e50740bc0dec2a78b18475665f11af6b95 (diff)
downloadredis-86ca9b25e22174ef6a5ce7b54b85b100bb4bc919.tar.gz
fix typos (#10402)
Diffstat (limited to 'src/rax.c')
-rw-r--r--src/rax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rax.c b/src/rax.c
index 3e6829c6e..dd89ad929 100644
--- a/src/rax.c
+++ b/src/rax.c
@@ -905,9 +905,9 @@ int raxInsert(rax *rax, unsigned char *s, size_t len, void *data, void **old) {
return raxGenericInsert(rax,s,len,data,old,1);
}
-/* Non overwriting insert function: this if an element with the same key
+/* Non overwriting insert function: if an element with the same key
* exists, the value is not updated and the function returns 0.
- * This is a just a wrapper for raxGenericInsert(). */
+ * This is just a wrapper for raxGenericInsert(). */
int raxTryInsert(rax *rax, unsigned char *s, size_t len, void *data, void **old) {
return raxGenericInsert(rax,s,len,data,old,0);
}