From: Javier Revillas Date: Sun, 25 Aug 2019 16:05:41 +0000 (+0000) Subject: net/http: fix a typo in comments X-Git-Tag: go1.14beta1~1359 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=cd33d271b47bf3b56c67bf9ab73176ed4504efe9;p=gostls13.git net/http: fix a typo in comments HTTP is an initialism, not an acronym, where you pronounce each letter as a word. It's "an H", not "a H". Running `find src/net/http -type f | xargs grep -n 'an HTTP' | wc -l` shows that the "an HTTP" form is used 67 times across the `net/http` package. Furthermore, `find src/net/http -type f | xargs grep -n 'a HTTP' | wc -l` yields only 4 results. Change-Id: I219c292a9e2c9bf7a009dbfe82ea8b15874685e9 GitHub-Last-Rev: 6ebd095023af47444b6b0fc5b6d7b26d85f4c7b7 GitHub-Pull-Request: golang/go#33810 Reviewed-on: https://go-review.googlesource.com/c/go/+/191700 Reviewed-by: Toshihiro Shiino Reviewed-by: Ian Lance Taylor --- diff --git a/src/net/http/httptrace/trace.go b/src/net/http/httptrace/trace.go index 8b377edee5..6a5cbac9d8 100644 --- a/src/net/http/httptrace/trace.go +++ b/src/net/http/httptrace/trace.go @@ -133,8 +133,8 @@ type ClientTrace struct { ConnectDone func(network, addr string, err error) // TLSHandshakeStart is called when the TLS handshake is started. When - // connecting to a HTTPS site via a HTTP proxy, the handshake happens after - // the CONNECT request is processed by the proxy. + // connecting to an HTTPS site via an HTTP proxy, the handshake happens + // after the CONNECT request is processed by the proxy. TLSHandshakeStart func() // TLSHandshakeDone is called after the TLS handshake with either the diff --git a/src/net/http/request.go b/src/net/http/request.go index 31d62083cb..6e113f1607 100644 --- a/src/net/http/request.go +++ b/src/net/http/request.go @@ -763,7 +763,7 @@ func removeZone(host string) string { return host[:j] + host[i:] } -// ParseHTTPVersion parses a HTTP version string. +// ParseHTTPVersion parses an HTTP version string. // "HTTP/1.0" returns (1, 0, true). func ParseHTTPVersion(vers string) (major, minor int, ok bool) { const Big = 1000000 // arbitrary upper bound