doc(bufferpool): add a nocopy comment to sync.Pool field
This commit is contained in:
parent
3de67ebf26
commit
b78b33a5d2
|
@ -5,6 +5,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type Pool struct {
|
type Pool struct {
|
||||||
|
// A Pool must not be copied after first use.
|
||||||
|
// https://golang.org/pkg/sync/#Pool
|
||||||
buffers sync.Pool
|
buffers sync.Pool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue