fixed the doc with a right function name

This commit is contained in:
Dvir Volk 2016-04-03 19:04:32 +03:00 committed by antirez
parent e443ad9c29
commit e711a9ac45

View File

@ -160,9 +160,10 @@ you may need to directly access the string object.
There are a few functions in order to work with string objects: There are a few functions in order to work with string objects:
const char *RedisModule_StringPtr(RedisModuleString *string, size_t *len); const char *RedisModule_StringPtrLen(RedisModuleString *string, size_t *len);
The above function accesses a string by returning its pointer and length. 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 You should never write to a string object pointer, as you can see from the
`const` pointer qualifier. `const` pointer qualifier.