summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2016-06-15 12:51:15 +0200
committerGitHub <noreply@github.com>2016-06-15 12:51:15 +0200
commitbd2cd7059a4fc64f503f2c51f29c27a6311ecbc3 (patch)
tree3bd4b8fc332802bbaf3b6c41cd5eeeab3fee03a8 /src/modules
parent2d86995273e431b40c2bd30c694ea405cc698118 (diff)
parent3432061cbb9adc5e5dff5d556195031ae54929c2 (diff)
downloadredis-bd2cd7059a4fc64f503f2c51f29c27a6311ecbc3.tar.gz
Merge pull request #3281 from jamespedwards42/unstable
Fix modules intro typos.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/INTRO.md7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/modules/INTRO.md b/src/modules/INTRO.md
index e2aa67730..1ba972f82 100644
--- a/src/modules/INTRO.md
+++ b/src/modules/INTRO.md
@@ -186,7 +186,7 @@ There are a few functions in order to work with string objects:
const char *RedisModule_StringPtrLen(RedisModuleString *string, size_t *len);
-The above function accesses a string by returning its pointer and setting its
+The above function accesses a string by returning its pointer and setting its
length in `len`.
You should never write to a string object pointer, as you can see from the
`const` pointer qualifier.
@@ -368,7 +368,7 @@ section).
# Releasing call reply objects
-Reply objects must be freed using `RedisModule_FreeCallRelpy`. For arrays,
+Reply objects must be freed using `RedisModule_FreeCallReply`. For arrays,
you need to free only the top level reply, not the nested replies.
Currently the module implementation provides a protection in order to avoid
crashing if you free a nested reply object for error, however this feature
@@ -647,7 +647,7 @@ access) for speed. The API will return a pointer and a length, so that's
possible to access and, if needed, modify the string directly.
size_t len, j;
- char *myptr = RedisModule_StringDMA(key,REDISMODULE_WRITE,&len);
+ char *myptr = RedisModule_StringDMA(key,&len,REDISMODULE_WRITE);
for (j = 0; j < len; j++) myptr[j] = 'A';
In the above example we write directly on the string. Note that if you want
@@ -853,4 +853,3 @@ Documentation missing, please check the following functions inside `module.c`:
RedisModule_IsKeysPositionRequest(ctx);
RedisModule_KeyAtPos(ctx,pos);
-