Commit 40f3ff21 authored by antirez's avatar antirez
Browse files

Merge remote-tracking branch 'origin/unstable' into unstable

parents 0b14e441 794e6ce1
...@@ -298,7 +298,7 @@ unsigned char *zipmapDel(unsigned char *zm, unsigned char *key, unsigned int kle ...@@ -298,7 +298,7 @@ unsigned char *zipmapDel(unsigned char *zm, unsigned char *key, unsigned int kle
return zm; return zm;
} }
/* Call it before to iterate trought elements via zipmapNext() */ /* Call before iterating through elements via zipmapNext() */
unsigned char *zipmapRewind(unsigned char *zm) { unsigned char *zipmapRewind(unsigned char *zm) {
return zm+1; return zm+1;
} }
...@@ -452,7 +452,7 @@ int main(void) { ...@@ -452,7 +452,7 @@ int main(void) {
vlen, vlen, value); vlen, vlen, value);
} }
} }
printf("\nIterate trought elements:\n"); printf("\nIterate through elements:\n");
{ {
unsigned char *i = zipmapRewind(zm); unsigned char *i = zipmapRewind(zm);
unsigned char *key, *value; unsigned char *key, *value;
......
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