Skip to content

Commit 44e7035

Browse files
committed
Merge pull request go-sql-driver#429 from arnehormann/doc-config-reqs
doc: add requirements to Config field comments
2 parents 1e1fb86 + 193c826 commit 44e7035

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dsn.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ var (
2929
// Config is a configuration parsed from a DSN string
3030
type Config struct {
3131
User string // Username
32-
Passwd string // Password
32+
Passwd string // Password (requires User)
3333
Net string // Network type
34-
Addr string // Network address
34+
Addr string // Network address (requires Net)
3535
DBName string // Database name
3636
Params map[string]string // Connection parameters
3737
Collation string // Connection collation

0 commit comments

Comments
 (0)