renaming: AcquireByteBuffer -> Acquire, ReleaseByteBuffer -> Release

This commit is contained in:
Aliaksandr Valialkin
2016-06-23 11:07:55 +03:00
parent e8ad8e40ca
commit 164e50ac3f
4 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -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)
}