all: fix spelling

This commit is contained in:
John Bampton 2021-03-05 13:06:50 +10:00
parent 2b0e29f516
commit 5d0b55d491
5 changed files with 5 additions and 5 deletions

View file

@ -5,7 +5,7 @@
// +build !android // +build !android
// Test that pthread_cancel works as expected // Test that pthread_cancel works as expected
// (NPTL uses SIGRTMIN to implement thread cancelation) // (NPTL uses SIGRTMIN to implement thread cancellation)
// See https://golang.org/issue/6997 // See https://golang.org/issue/6997
package cgotest package cgotest

View file

@ -1945,7 +1945,7 @@ func TestClientDoCanceledVsTimeout_h2(t *testing.T) {
} }
// Issue 33545: lock-in the behavior promised by Client.Do's // Issue 33545: lock-in the behavior promised by Client.Do's
// docs about request cancelation vs timing out. // docs about request cancellation vs timing out.
func testClientDoCanceledVsTimeout(t *testing.T, h2 bool) { func testClientDoCanceledVsTimeout(t *testing.T, h2 bool) {
defer afterTest(t) defer afterTest(t)
cst := newClientServerTest(t, h2, HandlerFunc(func(w ResponseWriter, r *Request) { cst := newClientServerTest(t, h2, HandlerFunc(func(w ResponseWriter, r *Request) {

View file

@ -562,7 +562,7 @@ func (p *ReverseProxy) handleUpgradeResponse(rw http.ResponseWriter, req *http.R
backConnCloseCh := make(chan bool) backConnCloseCh := make(chan bool)
go func() { go func() {
// Ensure that the cancelation of a request closes the backend. // Ensure that the cancellation of a request closes the backend.
// See issue https://golang.org/issue/35559. // See issue https://golang.org/issue/35559.
select { select {
case <-req.Context().Done(): case <-req.Context().Done():

View file

@ -1208,7 +1208,7 @@ func TestReverseProxyWebSocket(t *testing.T) {
} }
} }
func TestReverseProxyWebSocketCancelation(t *testing.T) { func TestReverseProxyWebSocketCancellation(t *testing.T) {
n := 5 n := 5
triggerCancelCh := make(chan bool, n) triggerCancelCh := make(chan bool, n)
nthResponse := func(i int) string { nthResponse := func(i int) string {

View file

@ -453,7 +453,7 @@ func (up *socksUsernamePassword) Authenticate(ctx context.Context, rw io.ReadWri
b = append(b, up.Username...) b = append(b, up.Username...)
b = append(b, byte(len(up.Password))) b = append(b, byte(len(up.Password)))
b = append(b, up.Password...) b = append(b, up.Password...)
// TODO(mikio): handle IO deadlines and cancelation if // TODO(mikio): handle IO deadlines and cancellation if
// necessary // necessary
if _, err := rw.Write(b); err != nil { if _, err := rw.Write(b); err != nil {
return err return err