From 962c785dfb3bb6ad98b2216bcedd84ba383fe872 Mon Sep 17 00:00:00 2001 From: Ivan Trubach Date: Thu, 25 Feb 2021 19:42:57 +0300 Subject: [PATCH] Update doc for dirver.Connector that implements io.Closer --- src/database/sql/driver/driver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/database/sql/driver/driver.go b/src/database/sql/driver/driver.go index a32ae4343d4d8..f09396175acf8 100644 --- a/src/database/sql/driver/driver.go +++ b/src/database/sql/driver/driver.go @@ -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