all: fix typos
Change-Id: Ie6cbdc214354a37887433a11b5f1f6adf9d047d3
Reviewed-on: https://go-review.googlesource.com/c/net/+/337209
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Than McIntosh <thanm@google.com>
diff --git a/http2/h2c/h2c.go b/http2/h2c/h2c.go
index 16319b8..c0970d8 100644
--- a/http2/h2c/h2c.go
+++ b/http2/h2c/h2c.go
@@ -338,7 +338,7 @@
}
fSize := fh.Length + 9
if uint32(len(w.buf)) < fSize {
- // Have not collected whole frame. Stop processing buf, and withold on
+ // Have not collected whole frame. Stop processing buf, and withhold on
// forward bytes to w.Writer until we get the full frame.
break
}
diff --git a/http2/server.go b/http2/server.go
index 0ccbe9b..07ac694 100644
--- a/http2/server.go
+++ b/http2/server.go
@@ -816,7 +816,7 @@
})
sc.unackedSettings++
- // Each connection starts with intialWindowSize inflow tokens.
+ // Each connection starts with initialWindowSize inflow tokens.
// If a higher value is configured, we add more tokens.
if diff := sc.srv.initialConnRecvWindowSize() - initialWindowSize; diff > 0 {
sc.sendWindowUpdate(nil, int(diff))
diff --git a/http2/testdata/draft-ietf-httpbis-http2.xml b/http2/testdata/draft-ietf-httpbis-http2.xml
index 31a84be..39d756d 100644
--- a/http2/testdata/draft-ietf-httpbis-http2.xml
+++ b/http2/testdata/draft-ietf-httpbis-http2.xml
@@ -2290,7 +2290,7 @@
<t>
The purpose of this frame is to allow an endpoint to gracefully stop accepting new
streams, while still finishing processing of previously established streams. This enables
- administrative actions, like server maintainance.
+ administrative actions, like server maintenance.
</t>
<t>
There is an inherent race condition between an endpoint starting new streams and the