mirror of
https://github.com/valyala/bytebufferpool.git
synced 2026-06-14 13:26:35 +03:00
renaming: AcquireByteBuffer -> Acquire, ReleaseByteBuffer -> Release
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
func ExampleByteBuffer() {
|
||||
bb := bytebufferpool.AcquireByteBuffer()
|
||||
bb := bytebufferpool.Acquire()
|
||||
|
||||
bb.WriteString("first line\n")
|
||||
bb.Write([]byte("second line\n"))
|
||||
@@ -17,5 +17,5 @@ func ExampleByteBuffer() {
|
||||
|
||||
// It is safe to release byte buffer now, since it is
|
||||
// no longer used.
|
||||
bytebufferpool.ReleaseByteBuffer(bb)
|
||||
bytebufferpool.Release(bb)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user