From d423b42d6bb841d4b11fef44c22867aaf55ab042 Mon Sep 17 00:00:00 2001 From: jovial <41611371+JovialYip@users.noreply.github.com> Date: Sun, 15 Dec 2024 14:30:54 +0800 Subject: [PATCH] chore: fix typo in comments (#375) --- connection_impl.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connection_impl.go b/connection_impl.go index 49913658..2d4f3f48 100644 --- a/connection_impl.go +++ b/connection_impl.go @@ -331,7 +331,7 @@ var barrierPool = sync.Pool{ }, } -// init initialize the connection with options +// init initializes the connection with options func (c *connection) init(conn Conn, opts *options) (err error) { // init buffer, barrier, finalizer c.readTrigger = make(chan error, 1) @@ -478,7 +478,7 @@ RET: return err } -// flush write data directly. +// flush writes data directly. func (c *connection) flush() error { if c.outputBuffer.IsEmpty() { return nil