Skip to content

Commit

Permalink
Fix redisBufferRead documentation
Browse files Browse the repository at this point in the history
Referred to redisContextReadReply which I cannot find in this codebase
nor the old redis-tools one. Presumably this meant to say
redisGetReplyFromReader which is how redisBufferRead is used in this
file. Could've also meant the interface function redisReaderGetReply.
  • Loading branch information
hacst committed Oct 24, 2018
1 parent 67036ef commit 169fcc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hiredis.c
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ int redisEnableKeepAlive(redisContext *c) {
/* Use this function to handle a read event on the descriptor. It will try
* and read some bytes from the socket and feed them to the reply parser.
*
* After this function is called, you may use redisContextReadReply to
* After this function is called, you may use redisGetReplyFromReader to
* see if there is a reply available. */
int redisBufferRead(redisContext *c) {
char buf[1024*16];
Expand Down

0 comments on commit 169fcc7

Please sign in to comment.