Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
b91cbf66
Commit
b91cbf66
authored
Nov 01, 2011
by
Jason Davies
Browse files
Fix minor typos.
parent
ef23f3ac
Changes
1
Show whitespace changes
Inline
Side-by-side
src/zipmap.c
View file @
b91cbf66
...
@@ -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
iterat
e
trough
t
elements via zipmapNext() */
/* Call before iterat
ing
t
h
rough 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
(
"
\n
Iterate trough
t
elements:
\n
"
);
printf
(
"
\n
Iterate t
h
rough elements:
\n
"
);
{
{
unsigned
char
*
i
=
zipmapRewind
(
zm
);
unsigned
char
*
i
=
zipmapRewind
(
zm
);
unsigned
char
*
key
,
*
value
;
unsigned
char
*
key
,
*
value
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment