From 9dfff5d7c1056081e9f4dede8a244e98ad8df9b6 Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Fri, 22 Nov 2024 00:33:25 +0900 Subject: [PATCH] Apply suggestions from code review Co-authored-by: ICHINOSE Shogo --- buffer.go | 2 +- connection.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/buffer.go b/buffer.go index 2dc89872..d3d009cc 100644 --- a/buffer.go +++ b/buffer.go @@ -43,7 +43,7 @@ func newBuffer(nc net.Conn) buffer { } } -// busy retruns true if the buffer contains some read data. +// busy returns true if the buffer contains some read data. func (b *buffer) busy() bool { return b.length > 0 } diff --git a/connection.go b/connection.go index 95f05c92..c220a836 100644 --- a/connection.go +++ b/connection.go @@ -125,7 +125,7 @@ func (mc *mysqlConn) Close() (err error) { return } -// close closes the network connection and cleare results without sending COM_QUIT. +// close closes the network connection and clear results without sending COM_QUIT. func (mc *mysqlConn) close() { mc.cleanup() mc.clearResult()