Skip to content

Commit 2ebcad4

Browse files
committed
Make doc for driver.Connector reflect the implementation
1 parent dc119f7 commit 2ebcad4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/database/sql/driver/driver.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ type DriverContext interface {
116116
// access to context and to avoid repeated parsing of driver
117117
// configuration.
118118
//
119-
// A Connector may optionally implement io.Closer interface
120-
// to release the resources when sql.DB is closed.
119+
// If a Connector implements io.Closer interface, the sql package's
120+
// DB.Close will call the Close method and return the error (if any).
121121
type Connector interface {
122122
// Connect returns a connection to the database.
123123
// Connect may return a cached connection (one previously

0 commit comments

Comments
 (0)