Skip to content

Commit 012b939

Browse files
authored
docs(p2p,node): fix typos ethereum#21118 (#2419)
1 parent 0c627b8 commit 012b939

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

node/jwt_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type jwtHandler struct {
3131
next http.Handler
3232
}
3333

34-
// newJWTHandler creates a http.Handler with jwt authentication support.
34+
// newJWTHandler creates an http.Handler with jwt authentication support.
3535
func newJWTHandler(secret []byte, next http.Handler) http.Handler {
3636
return &jwtHandler{
3737
keyFunc: func(token *jwt.Token) (interface{}, error) {

p2p/dnsdisc/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func (it *randomIterator) Next() bool {
248248
return it.cur != nil
249249
}
250250

251-
// addTree adds a enrtree:// URL to the iterator.
251+
// addTree adds an enrtree:// URL to the iterator.
252252
func (it *randomIterator) addTree(url string) error {
253253
le, err := parseLink(url)
254254
if err != nil {

p2p/rlpx_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func TestSharedSecret(t *testing.T) {
5454
}
5555
t.Logf("Secret:\n%v %x\n%v %x", len(ss0), ss0, len(ss0), ss1)
5656
if !bytes.Equal(ss0, ss1) {
57-
t.Errorf("dont match :(")
57+
t.Errorf("don't match :(")
5858
}
5959
}
6060

0 commit comments

Comments
 (0)