Skip to content

Commit 2f96fd1

Browse files
committed
Fix doc
1 parent c159538 commit 2f96fd1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

commands.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -984,9 +984,9 @@ func (c cmdable) HMGet(key string, fields ...string) *SliceCmd {
984984
}
985985

986986
// HMSet is like HSet, but accepts multiple values:
987-
// - HMSet("key1", "value1", "key2", "value2")
988-
// - HMSet([]string{"key1", "value1", "key2", "value2"})
989-
// - HMSet(map[string]interface{}{"key1": "value1", "key2": "value2"})
987+
// - HMSet("myhash", "key1", "value1", "key2", "value2")
988+
// - HMSet("myhash", []string{"key1", "value1", "key2", "value2"})
989+
// - HMSet("myhash", map[string]interface{}{"key1": "value1", "key2": "value2"})
990990
//
991991
// Note that it uses HSET Redis command underneath because HMSET is deprecated.
992992
func (c cmdable) HMSet(key string, values ...interface{}) *IntCmd {

0 commit comments

Comments
 (0)