Update godoc

pull/7348/head
Jason Wilder 2016-09-26 09:34:45 -06:00
parent 658149a6ff
commit f632b41f6a
2 changed files with 4 additions and 2 deletions

View File

@ -14,7 +14,9 @@ func NewBytes(max int) *Bytes {
}
}
// Get returns a byte slice size with at least sz capacity.
// Get returns a byte slice size with at least sz capacity. Items
// returned may not be in the zero state and should be reset by the
// caller.
func (p *Bytes) Get(sz int) []byte {
var c []byte
select {

View File

@ -1,6 +1,6 @@
package pool
// Generic is a pool of byte slices that can be re-used. Slices in
// Generic is a pool of types that can be re-used. Items in
// this pool will not be garbage collected when not in use.
type Generic struct {
pool chan interface{}