summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2020-04-14 11:23:44 +0200
committerantirez <antirez@gmail.com>2020-04-14 11:23:44 +0200
commit086c1db2d998192d92d923ae2d2fba4f145e152f (patch)
tree8a5b213c924ddc6a179b646eaee3cce732ab4910
parent5fece85491421c4cc34c8340a42b2cc5360044b0 (diff)
downloadredis-086c1db2d998192d92d923ae2d2fba4f145e152f.tar.gz
Fix zsetAdd() top comment spelling.
-rw-r--r--src/t_zset.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/t_zset.c b/src/t_zset.c
index 147313d53..5c000e76f 100644
--- a/src/t_zset.c
+++ b/src/t_zset.c
@@ -1301,14 +1301,14 @@ int zsetScore(robj *zobj, sds member, double *score) {
* none could be set if we re-added an element using the same score it used
* to have, or in the case a zero increment is used).
*
- * The function returns 0 on erorr, currently only when the increment
+ * The function returns 0 on error, currently only when the increment
* produces a NAN condition, or when the 'score' value is NAN since the
* start.
*
- * The commad as a side effect of adding a new element may convert the sorted
+ * The command as a side effect of adding a new element may convert the sorted
* set internal encoding from ziplist to hashtable+skiplist.
*
- * Memory managemnet of 'ele':
+ * Memory management of 'ele':
*
* The function does not take ownership of the 'ele' SDS string, but copies
* it if needed. */