Skip to content

Commit 962c785

Browse files
committed
Update doc for dirver.Connector that implements io.Closer
1 parent 2ebcad4 commit 962c785

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-
// 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).
119+
// If a Connector implements io.Closer, the sql package's DB.Close
120+
// method will call Close and return 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)