Commit d200342a authored by antirez's avatar antirez
Browse files

Fixed typo in comment

parent 6326c3ce
...@@ -1521,7 +1521,7 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) { ...@@ -1521,7 +1521,7 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
score = src[0].weight * zval.score; score = src[0].weight * zval.score;
for (j = 1; j < setnum; j++) { for (j = 1; j < setnum; j++) {
/* It is not safe to access the hash we zset we are /* It is not safe to access the zset we are
* iterating, so explicitly check for equal object. */ * iterating, so explicitly check for equal object. */
if (src[j].subject == src[0].subject) { if (src[j].subject == src[0].subject) {
value = zval.score*src[j].weight; value = zval.score*src[j].weight;
...@@ -1566,7 +1566,7 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) { ...@@ -1566,7 +1566,7 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
/* Because the inputs are sorted by size, it's only possible /* Because the inputs are sorted by size, it's only possible
* for sets at larger indices to hold this element. */ * for sets at larger indices to hold this element. */
for (j = (i+1); j < setnum; j++) { for (j = (i+1); j < setnum; j++) {
/* It is not safe to access the hash we zset we are /* It is not safe to access the zset we are
* iterating, so explicitly check for equal object. */ * iterating, so explicitly check for equal object. */
if(src[j].subject == src[i].subject) { if(src[j].subject == src[i].subject) {
value = zval.score*src[j].weight; value = zval.score*src[j].weight;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment