doc(bufferpool): add a nocopy comment to sync.Pool field

This commit is contained in:
Rueian 2019-12-22 13:01:55 +08:00
parent 3de67ebf26
commit b78b33a5d2
No known key found for this signature in database
GPG Key ID: 7AF5A0042DE9ACA7
1 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,8 @@ import (
)
type Pool struct {
// A Pool must not be copied after first use.
// https://golang.org/pkg/sync/#Pool
buffers sync.Pool
}