1
0
mirror of https://github.com/golang/go synced 2024-09-30 11:28:36 -06:00

database/sql/driver: use correct method name "Connect" in DriverContext docs

This commit is contained in:
Brad Erickson 2020-05-28 12:29:27 -07:00
parent 6bf2eea62a
commit 4a123572d5

View File

@ -96,7 +96,7 @@ type Driver interface {
// If a Driver implements DriverContext, then sql.DB will call // If a Driver implements DriverContext, then sql.DB will call
// OpenConnector to obtain a Connector and then invoke // OpenConnector to obtain a Connector and then invoke
// that Connector's Conn method to obtain each needed connection, // that Connector's Connect method to obtain each needed connection,
// instead of invoking the Driver's Open method for each connection. // instead of invoking the Driver's Open method for each connection.
// The two-step sequence allows drivers to parse the name just once // The two-step sequence allows drivers to parse the name just once
// and also provides access to per-Conn contexts. // and also provides access to per-Conn contexts.