Change-Id: I7d512281d8442d306594b57b5deaecd132b5ea9e
GitHub-Last-Rev:
251e1d6857516b21fd71f654133f81f23ffec654
GitHub-Pull-Request: golang/go#40793
Reviewed-on: https://go-review.googlesource.com/c/go/+/248441
Reviewed-by: Dave Cheney <dave@cheney.net>
// of bytes in the combined first two elements, error).
// The complete result is equal to
// `bytes.Join(append(fullBuffers, finalFragment), nil)`, which has a
-// length of `totalLen`. The result is strucured in this way to allow callers
+// length of `totalLen`. The result is structured in this way to allow callers
// to minimize allocations and copies.
func (b *Reader) collectFragments(delim byte) (fullBuffers [][]byte, finalFragment []byte, totalLen int, err error) {
var frag []byte
return true
}
// There's a very minor chance of a false positive with this.
- // Insted of detecting our golang.org/x/net/http2.Transport,
+ // Instead of detecting our golang.org/x/net/http2.Transport,
// it might detect a Transport type in a different http2
// package. But I know of none, and the only problem would be
// some temporarily leaked goroutines if the transport didn't
// roughly 100µs.
//
// Must be a multiple of the pageInUse bitmap element size and
- // must also evenly divid pagesPerArena.
+ // must also evenly divide pagesPerArena.
pagesPerReclaimerChunk = 512
)