Commit a6927df2 authored by Robert Griesemer's avatar Robert Griesemer

go.net: fix various typos

LGTM=adonovan
R=adonovan
CC=golang-codereviews, golang-dev
https://golang.org/cl/97950043
parent d6e95293
...@@ -1195,7 +1195,7 @@ func NewTokenizer(r io.Reader) *Tokenizer { ...@@ -1195,7 +1195,7 @@ func NewTokenizer(r io.Reader) *Tokenizer {
} }
// NewTokenizerFragment returns a new HTML Tokenizer for the given Reader, for // 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". // element's tag, such as "div" or "iframe".
// //
// For example, how the InnerHTML "a<b" is tokenized depends on whether it is // For example, how the InnerHTML "a<b" is tokenized depends on whether it is
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// +build ignore // +build ignore
// This program generates internet protocol constatns and tables by // This program generates internet protocol constants and tables by
// reading IANA protocol registries. // reading IANA protocol registries.
// //
// Usage of this program: // Usage of this program:
......
...@@ -28,7 +28,7 @@ var ( ...@@ -28,7 +28,7 @@ var (
// RFC 3542 Advanced Sockets Application Program Interface (API) for IPv6 // RFC 3542 Advanced Sockets Application Program Interface (API) for IPv6
// http://tools.ietf.org/html/rfc3542 // 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 // former still support RFC 2292 only. Please be aware that almost
// all protocol implementations prohibit using a combination of RFC // all protocol implementations prohibit using a combination of RFC
// 2292 and RFC 3542 for some practical reasons. // 2292 and RFC 3542 for some practical reasons.
...@@ -42,7 +42,7 @@ func (c *rawOpt) set(f ControlFlags) { c.cflags |= f } ...@@ -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) clear(f ControlFlags) { c.cflags &^= f }
func (c *rawOpt) isset(f ControlFlags) bool { return c.cflags&f != 0 } 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. // control flags.
type ControlFlags uint type ControlFlags uint
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// +build ignore // +build ignore
// This program generates internet protocol constatns and tables by // This program generates internet protocol constants and tables by
// reading IANA protocol registries. // reading IANA protocol registries.
// //
// Usage: // Usage:
......
...@@ -255,7 +255,7 @@ type Framer struct { ...@@ -255,7 +255,7 @@ type Framer struct {
headerDecompressor io.ReadCloser 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 // 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 // from/to the Reader and Writer, so the caller should pass in an appropriately
// buffered implementation to optimize performance. // buffered implementation to optimize performance.
......
...@@ -129,7 +129,7 @@ type frameReaderFactory interface { ...@@ -129,7 +129,7 @@ type frameReaderFactory interface {
// frameWriter is an interface to write a WebSocket frame. // frameWriter is an interface to write a WebSocket frame.
type frameWriter interface { type frameWriter interface {
// Writer is to write playload of the frame. // Writer is to write payload of the frame.
io.WriteCloser io.WriteCloser
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment