From 687b22998634d4ee91266ff8d51588ef29e881d0 Mon Sep 17 00:00:00 2001 From: minhquang4334 Date: Sun, 15 Dec 2024 10:01:43 +0700 Subject: [PATCH] Fix typo in comment: 'finish' should be 'cancel' --- AUTHORS | 1 + connection.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index a9860850..361c6b64 100644 --- a/AUTHORS +++ b/AUTHORS @@ -92,6 +92,7 @@ Paul Bonser Paulius Lozys Peter Schultz Phil Porada +Minh Quang Rebecca Chin Reed Allman Richard Wilkes diff --git a/connection.go b/connection.go index c220a836..acc62708 100644 --- a/connection.go +++ b/connection.go @@ -435,7 +435,7 @@ func (mc *mysqlConn) getSystemVar(name string) ([]byte, error) { return nil, err } -// finish is called when the query has canceled. +// cancel is called when the query has canceled. func (mc *mysqlConn) cancel(err error) { mc.canceled.Set(err) mc.cleanup()