Skip to content

Commit 2df201e

Browse files
committed
fix comments
1 parent 1fc07d4 commit 2df201e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/redis.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ def msetnx(*args)
764764
# Set one or more values, only if none of the keys exist.
765765
#
766766
# @example
767-
# redis.msetnx({ "key1" => "v1", "key2" => "v2" })
767+
# redis.mapped_msetnx({ "key1" => "v1", "key2" => "v2" })
768768
# # => true
769769
#
770770
# @param [Hash] hash keys mapping to values
@@ -1895,7 +1895,7 @@ def hmget(key, *fields, &blk)
18951895
# Get the values of all the given hash fields.
18961896
#
18971897
# @example
1898-
# redis.hmget("hash", "f1", "f2")
1898+
# redis.mapped_hmget("hash", "f1", "f2")
18991899
# # => { "f1" => "v1", "f2" => "v2" }
19001900
#
19011901
# @param [String] key
@@ -2032,7 +2032,7 @@ def punsubscribe(*channels)
20322032
end
20332033
end
20342034

2035-
# Inspect the state of the Pub/Sub subsystem.
2035+
# Inspect the state of the Pub/Sub subsystem.
20362036
# Possible subcommands: channels, numsub, numpat.
20372037
def pubsub(subcommand, *args)
20382038
synchronize do |client|
@@ -2458,7 +2458,7 @@ def sscan(key, cursor, options={})
24582458
# Scan a set
24592459
#
24602460
# @example Retrieve all of the keys in a set
2461-
# redis.sscan("set").to_a
2461+
# redis.sscan_each("set").to_a
24622462
# # => ["key1", "key2", "key3"]
24632463
#
24642464
# @param [Hash] options

0 commit comments

Comments
 (0)