Skip to content

Commit 01d9253

Browse files
authored
rpc: correct typo and reword comment for consistency (#20728)
1 parent 1e1b186 commit 01d9253

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rpc/http.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
251251
return
252252
}
253253
// All checks passed, create a codec that reads direct from the request body
254-
// untilEOF and writes the response to w and order the server to process a
254+
// until EOF, write the response to w, and order the server to process a
255255
// single request.
256256
ctx := r.Context()
257257
ctx = context.WithValue(ctx, "remote", r.RemoteAddr)
@@ -338,7 +338,7 @@ func (h *virtualHostHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
338338
return
339339

340340
}
341-
// Not an ip address, but a hostname. Need to validate
341+
// Not an IP address, but a hostname. Need to validate
342342
if _, exist := h.vhosts["*"]; exist {
343343
h.next.ServeHTTP(w, r)
344344
return

0 commit comments

Comments
 (0)