Skip to content

Commit 58ec583

Browse files
shawnpsbradfitz
authored andcommitted
all: fix typos
Change-Id: I6035941df8b0de6aeaf6c05df7257bcf6e9191fe Reviewed-on: https://go-review.googlesource.com/19320 Reviewed-by: Brad Fitzpatrick <[email protected]> Run-TryBot: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent abf4696 commit 58ec583

File tree

14 files changed

+16
-16
lines changed

14 files changed

+16
-16
lines changed

src/cmd/compile/internal/arm/prog.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ var progtable = [arm.ALAST]obj.ProgInfo{
9898
arm.AMOVH: {Flags: gc.SizeW | gc.LeftRead | gc.RightWrite | gc.Move},
9999
arm.AMOVW: {Flags: gc.SizeL | gc.LeftRead | gc.RightWrite | gc.Move},
100100

101-
// In addtion, duffzero reads R0,R1 and writes R1. This fact is
101+
// In addition, duffzero reads R0,R1 and writes R1. This fact is
102102
// encoded in peep.c
103103
obj.ADUFFZERO: {Flags: gc.Call},
104104

105-
// In addtion, duffcopy reads R1,R2 and writes R0,R1,R2. This fact is
105+
// In addition, duffcopy reads R1,R2 and writes R0,R1,R2. This fact is
106106
// encoded in peep.c
107107
obj.ADUFFCOPY: {Flags: gc.Call},
108108

src/cmd/compile/internal/gc/inl.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// saves a copy of the body. Then inlcalls walks each function body to
88
// expand calls to inlinable functions.
99
//
10-
// The debug['l'] flag controls the agressiveness. Note that main() swaps level 0 and 1,
10+
// The debug['l'] flag controls the aggressiveness. Note that main() swaps level 0 and 1,
1111
// making 1 the default and -l disable. -ll and more is useful to flush out bugs.
1212
// These additional levels (beyond -l) may be buggy and are not supported.
1313
// 0: disabled

src/cmd/compile/internal/gc/parser.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
package gc
66

77
// The recursive-descent parser is built around a slighty modified grammar
8-
// of Go to accomodate for the constraints imposed by strict one token look-
8+
// of Go to accommodate for the constraints imposed by strict one token look-
99
// ahead, and for better error handling. Subsequent checks of the constructed
1010
// syntax tree restrict the language accepted by the compiler to proper Go.
1111
//

src/cmd/internal/obj/arm/obj5.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func progedit(ctxt *obj.Link, p *obj.Prog) {
6060
// Treat MRC 15, 0, <reg>, C13, C0, 3 specially.
6161
case AMRC:
6262
if p.To.Offset&0xffff0fff == 0xee1d0f70 {
63-
// Because the instruction might be rewriten to a BL which returns in R0
63+
// Because the instruction might be rewritten to a BL which returns in R0
6464
// the register must be zero.
6565
if p.To.Offset&0xf000 != 0 {
6666
ctxt.Diag("%v: TLS MRC instruction must write to R0 as it might get translated into a BL instruction", p.Line())

src/crypto/rsa/rsa.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// possible.
1515
//
1616
// Two sets of interfaces are included in this package. When a more abstract
17-
// interface isn't neccessary, there are functions for encrypting/decrypting
17+
// interface isn't necessary, there are functions for encrypting/decrypting
1818
// with v1.5/OAEP and signing/verifying with v1.5/PSS. If one needs to abstract
1919
// over the public-key primitive, the PrivateKey struct implements the
2020
// Decrypter and Signer interfaces from the crypto package.

src/go/types/eval.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func Eval(fset *token.FileSet, pkg *Package, pos token.Pos, expr string) (tv Typ
4444
scope = pkg.scope
4545
} else {
4646
// The package scope extent (position information) may be
47-
// incorrect (files spread accross a wide range of fset
47+
// incorrect (files spread across a wide range of fset
4848
// positions) - ignore it and just consider its children
4949
// (file scopes).
5050
for _, fscope := range pkg.scope.children {

src/mime/encodedword.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func (e WordEncoder) bEncode(buf *bytes.Buffer, charset, s string) {
8989

9090
var currentLen, last, runeLen int
9191
for i := 0; i < len(s); i += runeLen {
92-
// Multi-byte characters must not be split accross encoded-words.
92+
// Multi-byte characters must not be split across encoded-words.
9393
// See RFC 2047, section 5.3.
9494
_, runeLen = utf8.DecodeRuneInString(s[i:])
9595

@@ -119,7 +119,7 @@ func (e WordEncoder) qEncode(buf *bytes.Buffer, charset, s string) {
119119
var currentLen, runeLen int
120120
for i := 0; i < len(s); i += runeLen {
121121
b := s[i]
122-
// Multi-byte characters must not be split accross encoded-words.
122+
// Multi-byte characters must not be split across encoded-words.
123123
// See RFC 2047, section 5.3.
124124
var encLen int
125125
if b >= ' ' && b <= '~' && b != '=' && b != '?' && b != '_' {

src/net/dnsmsg.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ func (rr *dnsRR_TXT) Walk(f func(v interface{}, name, tag string) bool) bool {
315315
if !f(&txt, "Txt", "") {
316316
return false
317317
}
318-
// more bytes than rr.Hdr.Rdlength said there woudld be
318+
// more bytes than rr.Hdr.Rdlength said there would be
319319
if rr.Hdr.Rdlength-n < uint16(len(txt))+1 {
320320
return false
321321
}

src/net/http/httptest/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func (s *Server) Close() {
167167
// few milliseconds wasn't liked (early versions of
168168
// https://golang.org/cl/15151) so now we just
169169
// forcefully close StateNew. The docs for Server.Close say
170-
// we wait for "oustanding requests", so we don't close things
170+
// we wait for "outstanding requests", so we don't close things
171171
// in StateActive.
172172
if st == http.StateIdle || st == http.StateNew {
173173
s.closeConn(c)

src/net/http/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ func (cw *chunkWriter) writeHeader(p []byte) {
10091009
w.closeAfterReply = true
10101010
}
10111011
default:
1012-
// Some other kind of error occured, like a read timeout, or
1012+
// Some other kind of error occurred, like a read timeout, or
10131013
// corrupt chunked encoding. In any case, whatever remains
10141014
// on the wire must not be parsed as another HTTP request.
10151015
w.closeAfterReply = true

src/net/http/transport.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,7 @@ type writeRequest struct {
13571357
req *transportRequest
13581358
ch chan<- error
13591359

1360-
// Optional blocking chan for Expect: 100-continue (for recieve).
1360+
// Optional blocking chan for Expect: 100-continue (for receive).
13611361
// If not nil, writeLoop blocks sending request body until
13621362
// it receives from this chan.
13631363
continueCh <-chan struct{}

src/os/os_windows_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func TestStatDir(t *testing.T) {
177177
}
178178

179179
if !os.SameFile(fi, fi2) {
180-
t.Fatal("race condition occured")
180+
t.Fatal("race condition occurred")
181181
}
182182
}
183183

src/path/filepath/symlink.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func walkSymlinks(path string) (string, error) {
100100
return "", err
101101
}
102102
if runtime.GOOS == "windows" {
103-
// walkLinks(".", ...) always retuns "." on unix.
103+
// walkLinks(".", ...) always returns "." on unix.
104104
// But on windows it returns symlink target, if current
105105
// directory is a symlink. Stop the walk, if symlink
106106
// target is not absolute path, and return "."

src/runtime/chan.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ func chanrecv(t *chantype, c *hchan, ep unsafe.Pointer, block bool) (selected, r
421421

422422
if sg := c.sendq.dequeue(); sg != nil {
423423
// Found a waiting sender. If buffer is size 0, receive value
424-
// directly from sender. Otherwise, recieve from head of queue
424+
// directly from sender. Otherwise, receive from head of queue
425425
// and add sender's value to the tail of the queue (both map to
426426
// the same buffer slot because the queue is full).
427427
recv(c, sg, ep, func() { unlock(&c.lock) })

0 commit comments

Comments
 (0)