Renaming: Acquire->Get, Release->Put for the sake of the consistency with standard package

This commit is contained in:
Aliaksandr Valialkin
2016-06-24 14:57:35 +03:00
parent 5dec51fcf9
commit 928aed2629
5 changed files with 42 additions and 30 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ import (
)
func ExampleByteBuffer() {
bb := bytebufferpool.Acquire()
bb := bytebufferpool.Get()
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.Release(bb)
bytebufferpool.Put(bb)
}