Unverified Commit 1666ffbe authored by Lu JJ's avatar Lu JJ Committed by GitHub
Browse files

fix typo in 'setTypeRandomElement' (#10662)

`the redis object pointer was populated.` -> `the sds pointer was populated.`
We don't populate the redis object pointer in this function.
parent 02080f26
...@@ -203,7 +203,7 @@ sds setTypeNextObject(setTypeIterator *si) { ...@@ -203,7 +203,7 @@ sds setTypeNextObject(setTypeIterator *si) {
* The caller provides both pointers to be populated with the right * The caller provides both pointers to be populated with the right
* object. The return value of the function is the object->encoding * object. The return value of the function is the object->encoding
* field of the object and is used by the caller to check if the * field of the object and is used by the caller to check if the
* int64_t pointer or the redis object pointer was populated. * int64_t pointer or the sds pointer was populated.
* *
* Note that both the sdsele and llele pointers should be passed and cannot * Note that both the sdsele and llele pointers should be passed and cannot
* be NULL since the function will try to defensively populate the non * be NULL since the function will try to defensively populate the non
......
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