Update doc for dirver.Connector that implements io.Closer

This commit is contained in:
Ivan Trubach 2021-02-25 19:42:57 +03:00
parent 2ebcad4739
commit 962c785dfb
1 changed files with 2 additions and 2 deletions

View File

@ -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