]> Cypherpunks repositories - gostls13.git/commitdiff
src/pkg: fixed various typos
authorRobert Griesemer <gri@golang.org>
Wed, 20 Mar 2013 23:32:37 +0000 (16:32 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 20 Mar 2013 23:32:37 +0000 (16:32 -0700)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7936043

src/pkg/go/build/build.go
src/pkg/mime/multipart/multipart.go
src/pkg/net/http/server.go
src/pkg/net/interface_darwin.go
src/pkg/net/interface_freebsd.go
src/pkg/net/iprawsock_plan9.go
src/pkg/net/iprawsock_posix.go
src/pkg/net/udpsock_plan9.go
src/pkg/net/udpsock_posix.go
src/pkg/os/file_windows.go
src/pkg/reflect/type.go

index d5f181d7c1e97cd80972a52a756813188d2d9fe5..f4a84b8a7f1b20d8ced8e5b618510d976a185024 100644 (file)
@@ -485,7 +485,7 @@ func (ctxt *Context) Import(path string, srcDir string, mode ImportMode) (*Packa
                        return p, fmt.Errorf("import %q: cannot import absolute path", path)
                }
 
-               // tried records the location of unsucsessful package lookups
+               // tried records the location of unsuccessful package lookups
                var tried struct {
                        goroot string
                        gopath []string
index 0592f6977930a30ea5760bdc63518c1ce3bee4e2..a6204d7bdbcfbf34197e8021e05c474a18c272a7 100644 (file)
@@ -268,7 +268,7 @@ func (r *Reader) NextPart() (*Part, error) {
 }
 
 // isFinalBoundary returns whether line is the final boundary line
-// indiciating that all parts are over.
+// indicating that all parts are over.
 // It matches `^--boundary--[ \t]*(\r\n)?$`
 func (mr *Reader) isFinalBoundary(line []byte) bool {
        if !bytes.HasPrefix(line, mr.dashBoundaryDash) {
index 5086ad0a7936c10b96745782071e269802979cb7..d7433d3f91d595e11ba2a80ab490f9a410cb1ad3 100644 (file)
@@ -655,7 +655,7 @@ func (w *response) bodyAllowed() bool {
 //
 // Handler starts. No header has been sent. The handler can either
 // write a header, or just start writing.  Writing before sending a header
-// sends an implicity empty 200 OK header.
+// sends an implicitly empty 200 OK header.
 //
 // If the handler didn't declare a Content-Length up front, we either
 // go into chunking mode or, if the handler finishes running before
index a50a7988ee008061fd34e3d5b5628256ef7c6315..ad0937db0470e4d26791a494893ae20a63315b22 100644 (file)
@@ -50,7 +50,7 @@ func newMulticastAddr(ifi *Interface, m *syscall.InterfaceMulticastAddrMessage)
                case *syscall.SockaddrInet6:
                        ifma := &IPAddr{IP: make(IP, IPv6len)}
                        copy(ifma.IP, sa.Addr[:])
-                       // NOTE: KAME based IPv6 protcol stack usually embeds
+                       // NOTE: KAME based IPv6 protocol stack usually embeds
                        // the interface index in the interface-local or link-
                        // local address as the kernel-internal form.
                        if ifma.IP.IsInterfaceLocalMulticast() || ifma.IP.IsLinkLocalMulticast() {
index d547d50b6d2ca114971410c6fee4e869e3d2ad78..5df767910e4382c3ed1977253d48adc5199523d9 100644 (file)
@@ -50,7 +50,7 @@ func newMulticastAddr(ifi *Interface, m *syscall.InterfaceMulticastAddrMessage)
                case *syscall.SockaddrInet6:
                        ifma := &IPAddr{IP: make(IP, IPv6len)}
                        copy(ifma.IP, sa.Addr[:])
-                       // NOTE: KAME based IPv6 protcol stack usually embeds
+                       // NOTE: KAME based IPv6 protocol stack usually embeds
                        // the interface index in the interface-local or link-
                        // local address as the kernel-internal form.
                        if ifma.IP.IsInterfaceLocalMulticast() || ifma.IP.IsLinkLocalMulticast() {
index 88e3b2c60b5df4c825fd62079b7aadec8ffad45a..43a5eab414c332abadf8ffa391640b1b5d2286da 100644 (file)
@@ -34,7 +34,7 @@ func (c *IPConn) ReadFrom(b []byte) (int, Addr, error) {
 }
 
 // ReadMsgIP reads a packet from c, copying the payload into b and the
-// associdated out-of-band data into oob.  It returns the number of
+// associated out-of-band data into oob.  It returns the number of
 // bytes copied into b, the number of bytes copied into oob, the flags
 // that were set on the packet and the source address of the packet.
 func (c *IPConn) ReadMsgIP(b, oob []byte) (n, oobn, flags int, addr *IPAddr, err error) {
index 2ef4db19c6b51f446146696b797240ad29e5d6a5..1bcaef9f2c31fb82f491d1bf3fcaed0b09b71a03 100644 (file)
@@ -98,7 +98,7 @@ func (c *IPConn) ReadFrom(b []byte) (int, Addr, error) {
 }
 
 // ReadMsgIP reads a packet from c, copying the payload into b and the
-// associdated out-of-band data into oob.  It returns the number of
+// associated out-of-band data into oob.  It returns the number of
 // bytes copied into b, the number of bytes copied into oob, the flags
 // that were set on the packet and the source address of the packet.
 func (c *IPConn) ReadMsgIP(b, oob []byte) (n, oobn, flags int, addr *IPAddr, err error) {
index 2a7e3d19c6507dd9ffe3f01c97ef3fa6e3f04c92..66dcbab7c5a9618e2ac85a431d0a1ff1ff544c34 100644 (file)
@@ -58,7 +58,7 @@ func (c *UDPConn) ReadFrom(b []byte) (int, Addr, error) {
 }
 
 // ReadMsgUDP reads a packet from c, copying the payload into b and
-// the associdated out-of-band data into oob.  It returns the number
+// the associated out-of-band data into oob.  It returns the number
 // of bytes copied into b, the number of bytes copied into oob, the
 // flags that were set on the packet and the source address of the
 // packet.
index 385cd902eb800f8358b55c47e93db05beca08e66..9aafb7083a7a31257aedcef4ba69f1b897668a2e 100644 (file)
@@ -89,7 +89,7 @@ func (c *UDPConn) ReadFrom(b []byte) (int, Addr, error) {
 }
 
 // ReadMsgUDP reads a packet from c, copying the payload into b and
-// the associdated out-of-band data into oob.  It returns the number
+// the associated out-of-band data into oob.  It returns the number
 // of bytes copied into b, the number of bytes copied into oob, the
 // flags that were set on the packet and the source address of the
 // packet.
index 2eba7a475219875b244e3445a5be502ce0d93967..82af756d89f6bace4dcf58e62ba4b07fcd32d5b1 100644 (file)
@@ -243,7 +243,7 @@ func (file *File) readdir(n int) (fi []FileInfo, err error) {
        return fi, nil
 }
 
-// readConsole reads utf16 charcters from console File,
+// readConsole reads utf16 characters from console File,
 // encodes them into utf8 and stores them in buffer b.
 // It returns the number of utf8 bytes read and an error, if any.
 func (f *File) readConsole(b []byte) (n int, err error) {
index 94a7521a7c3b1432219eb9b176b22b3cdd7372cc..5ec94f576d6883794c009dd139a23645fc3ac0a1 100644 (file)
@@ -1246,7 +1246,7 @@ func haveIdenticalUnderlyingType(T, V *rtype) bool {
 }
 
 // typelinks is implemented in package runtime.
-// It retuns a slice of all the 'typelink' information in the binary,
+// It returns a slice of all the 'typelink' information in the binary,
 // which is to say a slice of known types, sorted by string.
 // Note that strings are not unique identifiers for types:
 // there can be more than one with a given string.