Browse Source

all: fix typos in comments

Change-Id: Ic1771d3ea0e26e02f71d5f4d1d458eb93a2c016d
Reviewed-on: https://go-review.googlesource.com/137695
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Jongmin Kim 7 years ago
parent
commit
4dfa2610cd
2 changed files with 2 additions and 2 deletions
  1. 1 1
      http2/write.go
  2. 1 1
      route/interface.go

+ 1 - 1
http2/write.go

@@ -199,7 +199,7 @@ func (w *writeResHeaders) staysWithinBuffer(max int) bool {
 	// TODO: this is a common one. It'd be nice to return true
 	// TODO: this is a common one. It'd be nice to return true
 	// here and get into the fast path if we could be clever and
 	// here and get into the fast path if we could be clever and
 	// calculate the size fast enough, or at least a conservative
 	// calculate the size fast enough, or at least a conservative
-	// uppper bound that usually fires. (Maybe if w.h and
+	// upper bound that usually fires. (Maybe if w.h and
 	// w.trailers are nil, so we don't need to enumerate it.)
 	// w.trailers are nil, so we don't need to enumerate it.)
 	// Otherwise I'm afraid that just calculating the length to
 	// Otherwise I'm afraid that just calculating the length to
 	// answer this question would be slower than the ~2µs benefit.
 	// answer this question would be slower than the ~2µs benefit.

+ 1 - 1
route/interface.go

@@ -37,7 +37,7 @@ func (m *InterfaceAddrMessage) Sys() []Sys { return nil }
 // address message.
 // address message.
 type InterfaceMulticastAddrMessage struct {
 type InterfaceMulticastAddrMessage struct {
 	Version int    // message version
 	Version int    // message version
-	Type    int    // messsage type
+	Type    int    // message type
 	Flags   int    // interface flags
 	Flags   int    // interface flags
 	Index   int    // interface index
 	Index   int    // interface index
 	Addrs   []Addr // addresses
 	Addrs   []Addr // addresses