Commit c44066c5 authored by Igor Zhilianin's avatar Igor Zhilianin Committed by Brad Fitzpatrick

http2: fix typos

Change-Id: Ifa39718a790a7350a0c8f23d21356d42b15e0668
GitHub-Last-Rev: 63d19182f013827cc15533b743fb08b526ca3dd2
GitHub-Pull-Request: golang/net#22
Reviewed-on: https://go-review.googlesource.com/c/145357Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 9b4f9f5a
...@@ -1477,7 +1477,7 @@ func (fr *Framer) maxHeaderStringLen() int { ...@@ -1477,7 +1477,7 @@ func (fr *Framer) maxHeaderStringLen() int {
} }
// readMetaFrame returns 0 or more CONTINUATION frames from fr and // readMetaFrame returns 0 or more CONTINUATION frames from fr and
// merge them into into the provided hf and returns a MetaHeadersFrame // merge them into the provided hf and returns a MetaHeadersFrame
// with the decoded hpack values. // with the decoded hpack values.
func (fr *Framer) readMetaFrame(hf *HeadersFrame) (*MetaHeadersFrame, error) { func (fr *Framer) readMetaFrame(hf *HeadersFrame) (*MetaHeadersFrame, error) {
if fr.AllowIllegalReads { if fr.AllowIllegalReads {
......
...@@ -293,7 +293,7 @@ func (c *rwConn) Write(p []byte) (int, error) { ...@@ -293,7 +293,7 @@ func (c *rwConn) Write(p []byte) (int, error) {
return n, err return n, err
} }
// settingsAckSwallowWriter is a writer that normally forwards bytes to it's // settingsAckSwallowWriter is a writer that normally forwards bytes to its
// underlying Writer, but swallows the first SettingsAck frame that it sees. // underlying Writer, but swallows the first SettingsAck frame that it sees.
type settingsAckSwallowWriter struct { type settingsAckSwallowWriter struct {
Writer *bufio.Writer Writer *bufio.Writer
......
...@@ -1110,7 +1110,7 @@ func (sc *serverConn) startFrameWrite(wr FrameWriteRequest) { ...@@ -1110,7 +1110,7 @@ func (sc *serverConn) startFrameWrite(wr FrameWriteRequest) {
// errHandlerPanicked is the error given to any callers blocked in a read from // errHandlerPanicked is the error given to any callers blocked in a read from
// Request.Body when the main goroutine panics. Since most handlers read in the // Request.Body when the main goroutine panics. Since most handlers read in the
// the main ServeHTTP goroutine, this will show up rarely. // main ServeHTTP goroutine, this will show up rarely.
var errHandlerPanicked = errors.New("http2: handler panicked") var errHandlerPanicked = errors.New("http2: handler panicked")
// wroteFrame is called on the serve goroutine with the result of // wroteFrame is called on the serve goroutine with the result of
......
...@@ -329,7 +329,7 @@ func (wu writeWindowUpdate) writeFrame(ctx writeContext) error { ...@@ -329,7 +329,7 @@ func (wu writeWindowUpdate) writeFrame(ctx writeContext) error {
} }
// encodeHeaders encodes an http.Header. If keys is not nil, then (k, h[k]) // encodeHeaders encodes an http.Header. If keys is not nil, then (k, h[k])
// is encoded only only if k is in keys. // is encoded only if k is in keys.
func encodeHeaders(enc *hpack.Encoder, h http.Header, keys []string) { func encodeHeaders(enc *hpack.Encoder, h http.Header, keys []string) {
if keys == nil { if keys == nil {
sorter := sorterPool.Get().(*sorter) sorter := sorterPool.Get().(*sorter)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment