mirror of
https://github.com/golang/go
synced 2024-11-17 19:15:21 -07:00
all: fix spelling mistakes
This commit is contained in:
parent
cde5fd1c0f
commit
251e1d6857
@ -425,7 +425,7 @@ func (b *Reader) ReadLine() (line []byte, isPrefix bool, err error) {
|
|||||||
// of bytes in the combined first two elements, error).
|
// of bytes in the combined first two elements, error).
|
||||||
// The complete result is equal to
|
// The complete result is equal to
|
||||||
// `bytes.Join(append(fullBuffers, finalFragment), nil)`, which has a
|
// `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.
|
// to minimize allocations and copies.
|
||||||
func (b *Reader) collectFragments(delim byte) (fullBuffers [][]byte, finalFragment []byte, totalLen int, err error) {
|
func (b *Reader) collectFragments(delim byte) (fullBuffers [][]byte, finalFragment []byte, totalLen int, err error) {
|
||||||
var frag []byte
|
var frag []byte
|
||||||
|
@ -321,7 +321,7 @@ func knownRoundTripperImpl(rt RoundTripper, req *Request) bool {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
// There's a very minor chance of a false positive with this.
|
// 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
|
// it might detect a Transport type in a different http2
|
||||||
// package. But I know of none, and the only problem would be
|
// package. But I know of none, and the only problem would be
|
||||||
// some temporarily leaked goroutines if the transport didn't
|
// some temporarily leaked goroutines if the transport didn't
|
||||||
|
@ -42,7 +42,7 @@ const (
|
|||||||
// roughly 100µs.
|
// roughly 100µs.
|
||||||
//
|
//
|
||||||
// Must be a multiple of the pageInUse bitmap element size and
|
// Must be a multiple of the pageInUse bitmap element size and
|
||||||
// must also evenly divid pagesPerArena.
|
// must also evenly divide pagesPerArena.
|
||||||
pagesPerReclaimerChunk = 512
|
pagesPerReclaimerChunk = 512
|
||||||
|
|
||||||
// go115NewMCentralImpl is a feature flag for the new mcentral implementation.
|
// go115NewMCentralImpl is a feature flag for the new mcentral implementation.
|
||||||
|
Loading…
Reference in New Issue
Block a user