all: fix typos in comments (#21118)
This commit is contained in:
@ -251,7 +251,7 @@ func (it *randomIterator) Next() bool {
|
||||
return it.cur != nil
|
||||
}
|
||||
|
||||
// addTree adds a enrtree:// URL to the iterator.
|
||||
// addTree adds an enrtree:// URL to the iterator.
|
||||
func (it *randomIterator) addTree(url string) error {
|
||||
le, err := parseLink(url)
|
||||
if err != nil {
|
||||
|
@ -55,7 +55,7 @@ func TestSharedSecret(t *testing.T) {
|
||||
}
|
||||
t.Logf("Secret:\n%v %x\n%v %x", len(ss0), ss0, len(ss0), ss1)
|
||||
if !bytes.Equal(ss0, ss1) {
|
||||
t.Errorf("dont match :(")
|
||||
t.Errorf("don't match :(")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -698,7 +698,7 @@ func (s *Server) JSON(w http.ResponseWriter, status int, data interface{}) {
|
||||
json.NewEncoder(w).Encode(data)
|
||||
}
|
||||
|
||||
// wrapHandler returns a httprouter.Handle which wraps a http.HandlerFunc by
|
||||
// wrapHandler returns an httprouter.Handle which wraps an http.HandlerFunc by
|
||||
// populating request.Context with any objects from the URL params
|
||||
func (s *Server) wrapHandler(handler http.HandlerFunc) httprouter.Handle {
|
||||
return func(w http.ResponseWriter, req *http.Request, params httprouter.Params) {
|
||||
|
Reference in New Issue
Block a user