Skip to content

Commit c6fcb2d

Browse files
mattnianlancetaylor
authored andcommitted
all: fix typos
Change-Id: Ie6cbdc214354a37887433a11b5f1f6adf9d047d3 Reviewed-on: https://go-review.googlesource.com/c/net/+/337209 Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Trust: Than McIntosh <[email protected]>
1 parent 853a461 commit c6fcb2d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

http2/h2c/h2c.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ func (w *settingsAckSwallowWriter) Write(p []byte) (int, error) {
338338
}
339339
fSize := fh.Length + 9
340340
if uint32(len(w.buf)) < fSize {
341-
// Have not collected whole frame. Stop processing buf, and withold on
341+
// Have not collected whole frame. Stop processing buf, and withhold on
342342
// forward bytes to w.Writer until we get the full frame.
343343
break
344344
}

http2/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ func (sc *serverConn) serve() {
816816
})
817817
sc.unackedSettings++
818818

819-
// Each connection starts with intialWindowSize inflow tokens.
819+
// Each connection starts with initialWindowSize inflow tokens.
820820
// If a higher value is configured, we add more tokens.
821821
if diff := sc.srv.initialConnRecvWindowSize() - initialWindowSize; diff > 0 {
822822
sc.sendWindowUpdate(nil, int(diff))

http2/testdata/draft-ietf-httpbis-http2.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2290,7 +2290,7 @@ HTTP2-Settings = token68
22902290
<t>
22912291
The purpose of this frame is to allow an endpoint to gracefully stop accepting new
22922292
streams, while still finishing processing of previously established streams. This enables
2293-
administrative actions, like server maintainance.
2293+
administrative actions, like server maintenance.
22942294
</t>
22952295
<t>
22962296
There is an inherent race condition between an endpoint starting new streams and the

0 commit comments

Comments
 (0)