Skip to content

Commit 6960bcc

Browse files
kindknowmonkey92t
andauthored
chore: fix some comments (redis#2967)
Signed-off-by: kindknow <[email protected]> Co-authored-by: Monkey <[email protected]>
1 parent f5496d1 commit 6960bcc

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

options.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ func NewDialer(opt *Options) func(context.Context, string, string) (net.Conn, er
255255
// value, leave the value blank or remove the parameter
256256
// - only the last value is interpreted if a parameter is given multiple times
257257
// - fields "network", "addr", "username" and "password" can only be set using other
258-
// URL attributes (scheme, host, userinfo, resp.), query paremeters using these
258+
// URL attributes (scheme, host, userinfo, resp.), query parameters using these
259259
// names will be treated as unknown parameters
260260
// - unknown parameter names will result in an error
261261
//

osscluster.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func (opt *ClusterOptions) init() {
162162
// value, leave the value blank or remove the parameter
163163
// - only the last value is interpreted if a parameter is given multiple times
164164
// - fields "network", "addr", "username" and "password" can only be set using other
165-
// URL attributes (scheme, host, userinfo, resp.), query paremeters using these
165+
// URL attributes (scheme, host, userinfo, resp.), query parameters using these
166166
// names will be treated as unknown parameters
167167
// - unknown parameter names will result in an error
168168
//

pubsub.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ func (c *PubSub) getContext() context.Context {
491491
// Receive* APIs can not be used after channel is created.
492492
//
493493
// go-redis periodically sends ping messages to test connection health
494-
// and re-subscribes if ping can not not received for 1 minute.
494+
// and re-subscribes if ping can not received for 1 minute.
495495
func (c *PubSub) Channel(opts ...ChannelOption) <-chan *Message {
496496
c.chOnce.Do(func() {
497497
c.msgCh = newChannel(c, opts...)

redis_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ var _ = Describe("Client OnConnect", func() {
469469
})
470470
})
471471

472-
var _ = Describe("Client context cancelation", func() {
472+
var _ = Describe("Client context cancellation", func() {
473473
var opt *redis.Options
474474
var client *redis.Client
475475

@@ -484,7 +484,7 @@ var _ = Describe("Client context cancelation", func() {
484484
Expect(client.Close()).NotTo(HaveOccurred())
485485
})
486486

487-
It("Blocking operation cancelation", func() {
487+
It("Blocking operation cancellation", func() {
488488
ctx, cancel := context.WithCancel(ctx)
489489
cancel()
490490

0 commit comments

Comments
 (0)