We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d25a76 commit a531037Copy full SHA for a531037
utils.go
@@ -109,7 +109,7 @@ func parseDSN(dsn string) (cfg *config, err error) {
109
// Find the first '(' in dsn[j+1:i]
110
for k = j + 1; k < i; k++ {
111
if dsn[k] == '(' {
112
- // dsn[i-1] must be == ')' if an adress is specified
+ // dsn[i-1] must be == ')' if an address is specified
113
if dsn[i-1] != ')' {
114
if strings.ContainsRune(dsn[k+1:i], ')') {
115
return nil, errInvalidDSNUnescaped
@@ -144,7 +144,7 @@ func parseDSN(dsn string) (cfg *config, err error) {
144
cfg.net = "tcp"
145
}
146
147
- // Set default adress if empty
+ // Set default address if empty
148
if cfg.addr == "" {
149
switch cfg.net {
150
case "tcp":
0 commit comments