Skip to content

Commit

Permalink
Update doc for dirver.Connector that implements io.Closer
Browse files Browse the repository at this point in the history
  • Loading branch information
tie committed Feb 25, 2021
1 parent 2ebcad4 commit 962c785
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/database/sql/driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ type DriverContext interface {
// access to context and to avoid repeated parsing of driver
// configuration.
//
// If a Connector implements io.Closer interface, the sql package's
// DB.Close will call the Close method and return the error (if any).
// If a Connector implements io.Closer, the sql package's DB.Close
// method will call Close and return error (if any).
type Connector interface {
// Connect returns a connection to the database.
// Connect may return a cached connection (one previously
Expand Down

0 comments on commit 962c785

Please sign in to comment.