Skip to content

Commit

Permalink
Make doc for driver.Connector reflect the implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
tie committed Oct 1, 2020
1 parent f665a81 commit edd35d7
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.
//
// A Connector may optionally implement io.Closer interface
// to release the resources when sql.DB is closed.
// If a Connector implements io.Closer interface, the sql package's
// DB.Close will call the Close method and return the 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 edd35d7

Please sign in to comment.