Sfoglia il codice sorgente

go.net: fix various typos

LGTM=adonovan
R=adonovan
CC=golang-codereviews, golang-dev
https://golang.org/cl/97950043
Robert Griesemer 11 anni fa
parent
commit
a6927df230
6 ha cambiato i file con 7 aggiunte e 7 eliminazioni
  1. 1 1
      html/token.go
  2. 1 1
      ipv4/gen.go
  3. 2 2
      ipv6/control.go
  4. 1 1
      ipv6/gen.go
  5. 1 1
      spdy/types.go
  6. 1 1
      websocket/websocket.go

+ 1 - 1
html/token.go

@@ -1195,7 +1195,7 @@ func NewTokenizer(r io.Reader) *Tokenizer {
 }
 
 // NewTokenizerFragment returns a new HTML Tokenizer for the given Reader, for
-// tokenizing an exisitng element's InnerHTML fragment. contextTag is that
+// tokenizing an existing element's InnerHTML fragment. contextTag is that
 // element's tag, such as "div" or "iframe".
 //
 // For example, how the InnerHTML "a<b" is tokenized depends on whether it is

+ 1 - 1
ipv4/gen.go

@@ -4,7 +4,7 @@
 
 // +build ignore
 
-// This program generates internet protocol constatns and tables by
+// This program generates internet protocol constants and tables by
 // reading IANA protocol registries.
 //
 // Usage of this program:

+ 2 - 2
ipv6/control.go

@@ -28,7 +28,7 @@ var (
 // RFC 3542  Advanced Sockets Application Program Interface (API) for IPv6
 //	http://tools.ietf.org/html/rfc3542
 //
-// Note that RFC 3542 obsoltes RFC 2292 but OS X Snow Leopard and the
+// Note that RFC 3542 obsoletes RFC 2292 but OS X Snow Leopard and the
 // former still support RFC 2292 only.  Please be aware that almost
 // all protocol implementations prohibit using a combination of RFC
 // 2292 and RFC 3542 for some practical reasons.
@@ -42,7 +42,7 @@ func (c *rawOpt) set(f ControlFlags)        { c.cflags |= f }
 func (c *rawOpt) clear(f ControlFlags)      { c.cflags &^= f }
 func (c *rawOpt) isset(f ControlFlags) bool { return c.cflags&f != 0 }
 
-// A ControlFlags reprensents per packet basis IP-level socket option
+// A ControlFlags represents per packet basis IP-level socket option
 // control flags.
 type ControlFlags uint
 

+ 1 - 1
ipv6/gen.go

@@ -4,7 +4,7 @@
 
 // +build ignore
 
-// This program generates internet protocol constatns and tables by
+// This program generates internet protocol constants and tables by
 // reading IANA protocol registries.
 //
 // Usage:

+ 1 - 1
spdy/types.go

@@ -255,7 +255,7 @@ type Framer struct {
 	headerDecompressor        io.ReadCloser
 }
 
-// NewFramer allocates a new Framer for a given SPDY connection, repesented by
+// NewFramer allocates a new Framer for a given SPDY connection, represented by
 // a io.Writer and io.Reader. Note that Framer will read and write individual fields
 // from/to the Reader and Writer, so the caller should pass in an appropriately
 // buffered implementation to optimize performance.

+ 1 - 1
websocket/websocket.go

@@ -129,7 +129,7 @@ type frameReaderFactory interface {
 
 // frameWriter is an interface to write a WebSocket frame.
 type frameWriter interface {
-	// Writer is to write playload of the frame.
+	// Writer is to write payload of the frame.
 	io.WriteCloser
 }