From b464afb9e2c16277a5cf62cf1290c8e2ad4b0aa1 Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Thu, 24 Sep 2020 12:45:30 +0300 Subject: [PATCH] Fix RedisModule_HashGet examples (#6697) --- src/module.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/module.c b/src/module.c index 77468700e..ddf8ee888 100644 --- a/src/module.c +++ b/src/module.c @@ -2953,22 +2953,22 @@ int RM_HashSet(RedisModuleKey *key, int flags, ...) { * As with RedisModule_HashSet() the behavior of the command can be specified * passing flags different than REDISMODULE_HASH_NONE: * - * REDISMODULE_HASH_CFIELD: field names as null terminated C strings. + * REDISMODULE_HASH_CFIELDS: field names as null terminated C strings. * * REDISMODULE_HASH_EXISTS: instead of setting the value of the field * expecting a RedisModuleString pointer to pointer, the function just * reports if the field exists or not and expects an integer pointer * as the second element of each pair. * - * Example of REDISMODULE_HASH_CFIELD: + * Example of REDISMODULE_HASH_CFIELDS: * * RedisModuleString *username, *hashedpass; - * RedisModule_HashGet(mykey,"username",&username,"hp",&hashedpass, NULL); + * RedisModule_HashGet(mykey,REDISMODULE_HASH_CFIELDS,"username",&username,"hp",&hashedpass, NULL); * * Example of REDISMODULE_HASH_EXISTS: * * int exists; - * RedisModule_HashGet(mykey,argv[1],&exists,NULL); + * RedisModule_HashGet(mykey,REDISMODULE_HASH_EXISTS,argv[1],&exists,NULL); * * The function returns REDISMODULE_OK on success and REDISMODULE_ERR if * the key is not an hash value.