Skip to content

Commit f7f34fe

Browse files
authored
Optimize docs useless imports and typo (#2970)
1 parent 6960bcc commit f7f34fe

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,6 @@ to this specification.
143143

144144
```go
145145
import (
146-
"context"
147-
"fmt"
148-
149146
"github.com/redis/go-redis/v9"
150147
)
151148

options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ func NewDialer(opt *Options) func(context.Context, string, string) (net.Conn, er
250250
// - field names are mapped using snake-case conversion: to set MaxRetries, use max_retries
251251
// - only scalar type fields are supported (bool, int, time.Duration)
252252
// - for time.Duration fields, values must be a valid input for time.ParseDuration();
253-
// additionally a plain integer as value (i.e. without unit) is intepreted as seconds
253+
// additionally a plain integer as value (i.e. without unit) is interpreted as seconds
254254
// - to disable a duration field, use value less than or equal to 0; to use the default
255255
// value, leave the value blank or remove the parameter
256256
// - only the last value is interpreted if a parameter is given multiple times

osscluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func (opt *ClusterOptions) init() {
157157
// - field names are mapped using snake-case conversion: to set MaxRetries, use max_retries
158158
// - only scalar type fields are supported (bool, int, time.Duration)
159159
// - for time.Duration fields, values must be a valid input for time.ParseDuration();
160-
// additionally a plain integer as value (i.e. without unit) is intepreted as seconds
160+
// additionally a plain integer as value (i.e. without unit) is interpreted as seconds
161161
// - to disable a duration field, use value less than or equal to 0; to use the default
162162
// value, leave the value blank or remove the parameter
163163
// - only the last value is interpreted if a parameter is given multiple times

0 commit comments

Comments
 (0)