]> Cypherpunks repositories - gostls13.git/commitdiff
database/sql/driver: use correct method name "Connect" in DriverContext docs
authorBrad Erickson <bderickson@gmail.com>
Sat, 30 May 2020 03:10:57 +0000 (03:10 +0000)
committerEmmanuel Odeke <emm.odeke@gmail.com>
Sat, 30 May 2020 03:20:54 +0000 (03:20 +0000)
Change-Id: I755fedebb1f8f4d3f27b2b3f8626bca03bd36c88
GitHub-Last-Rev: 4a123572d55ad3b0104d3e6501eef5b2f37af4cd
GitHub-Pull-Request: golang/go#39305
Reviewed-on: https://go-review.googlesource.com/c/go/+/235518
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
src/database/sql/driver/driver.go

index 99fbd431be7867f07457a9b35ec0a765d0966685..5bbcf20db2f07d90f91d1d3d2f82786b55b7d948 100644 (file)
@@ -96,7 +96,7 @@ type Driver interface {
 
 // If a Driver implements DriverContext, then sql.DB will call
 // 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.
 // The two-step sequence allows drivers to parse the name just once
 // and also provides access to per-Conn contexts.