From edd35d790f8f3dbe3b0a4a508edee8aa1219b933 Mon Sep 17 00:00:00 2001 From: Ivan Trubach Date: Thu, 1 Oct 2020 14:51:20 +0300 Subject: [PATCH] Make doc for driver.Connector reflect the implementation --- 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 d1702a624e066e..a32ae4343d4d8d 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. // -// 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