Skip to content

Commit beb8692

Browse files
zhuhaicityndyakov
andauthored
chore: fix some comments (#3226)
Signed-off-by: zhuhaicity <[email protected]> Co-authored-by: Nedyalko Dyakov <[email protected]>
1 parent a39be37 commit beb8692

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: hash_commands.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ func (c cmdable) HExpire(ctx context.Context, key string, expiration time.Durati
225225
return cmd
226226
}
227227

228-
// HExpire - Sets the expiration time for specified fields in a hash in seconds.
228+
// HExpireWithArgs - Sets the expiration time for specified fields in a hash in seconds.
229229
// It requires a key, an expiration duration, a struct with boolean flags for conditional expiration settings (NX, XX, GT, LT), and a list of fields.
230230
// The command constructs an argument list starting with "HEXPIRE", followed by the key, duration, any conditional flags, and the specified fields.
231231
// For more information - https://redis.io/commands/hexpire/

Diff for: search_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ var _ = Describe("RediSearch commands Resp 2", Label("search"), func() {
136136
Expect(err).NotTo(HaveOccurred())
137137
Expect(val).To(BeEquivalentTo("OK"))
138138
WaitForIndexing(client, "txt")
139-
client.HSet(ctx, "doc1", "title", "RediSearch", "body", "Redisearch impements a search engine on top of redis")
139+
client.HSet(ctx, "doc1", "title", "RediSearch", "body", "Redisearch implements a search engine on top of redis")
140140
res1, err := client.FTSearchWithArgs(ctx, "txt", "search engine", &redis.FTSearchOptions{NoContent: true, Verbatim: true, LimitOffset: 0, Limit: 5}).Result()
141141
Expect(err).NotTo(HaveOccurred())
142142
Expect(res1.Total).To(BeEquivalentTo(int64(1)))
@@ -482,7 +482,7 @@ var _ = Describe("RediSearch commands Resp 2", Label("search"), func() {
482482
WaitForIndexing(client, "idx1")
483483

484484
client.HSet(ctx, "search", "title", "RediSearch",
485-
"body", "Redisearch impements a search engine on top of redis",
485+
"body", "Redisearch implements a search engine on top of redis",
486486
"parent", "redis",
487487
"random_num", 10)
488488
client.HSet(ctx, "ai", "title", "RedisAI",

0 commit comments

Comments
 (0)