Skip to content

Commit 932f293

Browse files
authored
Merge pull request #467 from kianmeng/fix-typos
Fix typos
2 parents 4049993 + 8077a61 commit 932f293

15 files changed

Lines changed: 22 additions & 22 deletions

File tree

client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,14 +407,14 @@ func (c *Client) SetTLSClientConfig(conf *tls.Config) *Client {
407407
return c
408408
}
409409

410-
// EnableInsecureSkipVerify enable send https without verifing
410+
// EnableInsecureSkipVerify enable send https without verifying
411411
// the server's certificates (disabled by default).
412412
func (c *Client) EnableInsecureSkipVerify() *Client {
413413
c.GetTLSClientConfig().InsecureSkipVerify = true
414414
return c
415415
}
416416

417-
// DisableInsecureSkipVerify disable send https without verifing
417+
// DisableInsecureSkipVerify disable send https without verifying
418418
// the server's certificates (disabled by default).
419419
func (c *Client) DisableInsecureSkipVerify() *Client {
420420
c.GetTLSClientConfig().InsecureSkipVerify = false

examples/find-popular-repo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ go run .
1010

1111
## Modify it
1212

13-
Change the global `username` vairable to your own github username:
13+
Change the global `username` variable to your own github username:
1414

1515
```go
1616
var username = "imroc"

examples/upload/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# upload
22

3-
This is a upload exmaple for `req`
3+
This is a upload example for `req`
44

55
## How to Run
66

examples/uploadcallback/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# uploadcallback
22

3-
This is a upload callback exmaple for `req`
3+
This is a upload callback example for `req`
44

55
## How to Run
66

http2/priority.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package http2
22

3-
// PriorityParam are the stream prioritzation parameters.
3+
// PriorityParam are the stream prioritization parameters.
44
type PriorityParam struct {
55
// StreamDep is a 31-bit stream identifier for the
66
// stream that this stream depends on. Zero means no

internal/http3/conn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ func (c *Conn) receiveDatagrams() error {
408408
}
409409

410410
// ReceivedSettings returns a channel that is closed once the peer's SETTINGS frame was received.
411-
// Settings can be optained from the Settings method after the channel was closed.
411+
// Settings can be obtained from the Settings method after the channel was closed.
412412
func (c *Conn) ReceivedSettings() <-chan struct{} { return c.receivedSettings }
413413

414414
// Settings returns the settings received on this connection.

internal/socks/dial_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func MarshalAuthReply(ver int, m AuthMethod) ([]byte, error) {
4848
return []byte{byte(ver), byte(m)}, nil
4949
}
5050

51-
// A CmdRequest repesents a command request.
51+
// A CmdRequest represents a command request.
5252
type CmdRequest struct {
5353
Version int
5454
Cmd Command
@@ -122,7 +122,7 @@ func MarshalCmdReply(ver int, reply Reply, a *Addr) ([]byte, error) {
122122
return b, nil
123123
}
124124

125-
// A Server repesents a server for handshake testing.
125+
// A Server represents a server for handshake testing.
126126
type Server struct {
127127
ln net.Listener
128128
}

internal/socks/socks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ func (up *UsernamePassword) Authenticate(ctx context.Context, rw io.ReadWriter,
269269
b = append(b, up.Username...)
270270
b = append(b, byte(len(up.Password)))
271271
b = append(b, up.Password...)
272-
// TODO(mikio): handle IO deadlines and cancelation if
272+
// TODO(mikio): handle IO deadlines and cancellation if
273273
// necessary
274274
if _, err := rw.Write(b); err != nil {
275275
return err

internal/testdata/cert.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func AddRootCA(certPool *x509.CertPool) {
4242
panic(err)
4343
}
4444
if ok := certPool.AppendCertsFromPEM(caCertRaw); !ok {
45-
panic("Could not add root ceritificate to pool.")
45+
panic("Could not add root certificate to pool.")
4646
}
4747
}
4848

middleware.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ func parseRequestBody(c *Client, r *Request) (err error) {
293293
}
294294

295295
func unmarshalBody(c *Client, r *Response, v any) (err error) {
296-
body, err := r.ToBytes() // in case req.SetResult or req.SetError with cient.DisalbeAutoReadResponse(true)
296+
body, err := r.ToBytes() // in case req.SetResult or req.SetError with client.DisableAutoReadResponse(true)
297297
if err != nil {
298298
return
299299
}

0 commit comments

Comments
 (0)