pool: fix typo

This commit is contained in:
yyforyongyu committed 2020-12-04 23:07:53 +08:00
1 parent 550341c036
commit eb1affd5da
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -86,7 +86,7 @@ func (w *Write) newWorkerState() WorkerState {
}
// Cleanup returns the writeBuf to the underlying buffer pool, and removes the
// goroutine's reference to the readBuf and encapsulating buf.
// goroutine's reference to the writeBuf and encapsulating buf.
func (w *writeWorkerState) Cleanup() {
w.bufferPool.Return(w.writeBuf)
w.writeBuf = nil