]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix spelling mistakes
authorlihaowei <haoweili35@gmail.com>
Fri, 14 Aug 2020 10:35:46 +0000 (10:35 +0000)
committerDave Cheney <dave@cheney.net>
Tue, 18 Aug 2020 03:28:52 +0000 (03:28 +0000)
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>
src/bufio/bufio.go
src/net/http/client.go
src/runtime/mheap.go

index 7cbd5424ea6c27ea44532423256edd0b434bb76a..6baf9b9e400f388c621bd8f5709d8918f1feebff 100644 (file)
@@ -425,7 +425,7 @@ func (b *Reader) ReadLine() (line []byte, isPrefix bool, err error) {
 // 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
index 3860d97d8f43bd032dec509261aa989ceeb77f55..6ca0d2e6cf3bdc60a702a74e9d7be41f5a71d056 100644 (file)
@@ -321,7 +321,7 @@ func knownRoundTripperImpl(rt RoundTripper, req *Request) bool {
                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
index cb586171c49ccca6546e03664dcf7a0436175c6f..1a57bcd66e30eacd4db4eb22cd52040e9562462b 100644 (file)
@@ -42,7 +42,7 @@ const (
        // 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
 )