Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
0ad265d4
Commit
0ad265d4
authored
Mar 20, 2013
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/pkg: fixed various typos
R=golang-dev, bradfitz CC=golang-dev
https://golang.org/cl/7936043
parent
bcb39a77
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
11 additions
and
11 deletions
+11
-11
src/pkg/go/build/build.go
src/pkg/go/build/build.go
+1
-1
src/pkg/mime/multipart/multipart.go
src/pkg/mime/multipart/multipart.go
+1
-1
src/pkg/net/http/server.go
src/pkg/net/http/server.go
+1
-1
src/pkg/net/interface_darwin.go
src/pkg/net/interface_darwin.go
+1
-1
src/pkg/net/interface_freebsd.go
src/pkg/net/interface_freebsd.go
+1
-1
src/pkg/net/iprawsock_plan9.go
src/pkg/net/iprawsock_plan9.go
+1
-1
src/pkg/net/iprawsock_posix.go
src/pkg/net/iprawsock_posix.go
+1
-1
src/pkg/net/udpsock_plan9.go
src/pkg/net/udpsock_plan9.go
+1
-1
src/pkg/net/udpsock_posix.go
src/pkg/net/udpsock_posix.go
+1
-1
src/pkg/os/file_windows.go
src/pkg/os/file_windows.go
+1
-1
src/pkg/reflect/type.go
src/pkg/reflect/type.go
+1
-1
No files found.
src/pkg/go/build/build.go
View file @
0ad265d4
...
...
@@ -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 unsuc
s
essful package lookups
// tried records the location of unsuc
c
essful package lookups
var
tried
struct
{
goroot
string
gopath
[]
string
...
...
src/pkg/mime/multipart/multipart.go
View file @
0ad265d4
...
...
@@ -268,7 +268,7 @@ func (r *Reader) NextPart() (*Part, error) {
}
// isFinalBoundary returns whether line is the final boundary line
// indic
i
ating 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
)
{
...
...
src/pkg/net/http/server.go
View file @
0ad265d4
...
...
@@ -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 implicit
l
y 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
...
...
src/pkg/net/interface_darwin.go
View file @
0ad265d4
...
...
@@ -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 prot
o
col 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
()
{
...
...
src/pkg/net/interface_freebsd.go
View file @
0ad265d4
...
...
@@ -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 prot
o
col 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
()
{
...
...
src/pkg/net/iprawsock_plan9.go
View file @
0ad265d4
...
...
@@ -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
// associ
d
ated 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
)
{
...
...
src/pkg/net/iprawsock_posix.go
View file @
0ad265d4
...
...
@@ -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
// associ
d
ated 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
)
{
...
...
src/pkg/net/udpsock_plan9.go
View file @
0ad265d4
...
...
@@ -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 associ
d
ated 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.
...
...
src/pkg/net/udpsock_posix.go
View file @
0ad265d4
...
...
@@ -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 associ
d
ated 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.
...
...
src/pkg/os/file_windows.go
View file @
0ad265d4
...
...
@@ -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 char
a
cters 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
)
{
...
...
src/pkg/reflect/type.go
View file @
0ad265d4
...
...
@@ -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 retu
r
ns 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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment