Skip to content

Commit 067bab0

Browse files
shawnpsianlancetaylor
authored andcommitted
all: fix misspellings
Change-Id: I429637ca91f7db4144f17621de851a548dc1ce76 Reviewed-on: https://go-review.googlesource.com/34923 Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
1 parent 8fa2344 commit 067bab0

File tree

17 files changed

+19
-19
lines changed

17 files changed

+19
-19
lines changed

src/bytes/buffer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type Buffer struct {
2323

2424
// The readOp constants describe the last action performed on
2525
// the buffer, so that UnreadRune and UnreadByte can check for
26-
// invalid usage. opReadRuneX constants are choosen such that
26+
// invalid usage. opReadRuneX constants are chosen such that
2727
// converted to int they correspond to the rune size that was read.
2828
type readOp int
2929

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ func parName(f *Field, numbered bool) string {
10001000
Fatalf("invalid symbol name: %s", name)
10011001
}
10021002

1003-
// Functions that can be inlined use numbered parameters so we can distingish them
1003+
// Functions that can be inlined use numbered parameters so we can distinguish them
10041004
// from other names in their context after inlining (i.e., the parameter numbering
10051005
// is a form of parameter rewriting). See issue 4326 for an example and test case.
10061006
if forceObjFileStability || numbered {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ func getlit(lit *Node) int {
11971197
return -1
11981198
}
11991199

1200-
// stataddr sets nam to the static address of n and reports whether it succeeeded.
1200+
// stataddr sets nam to the static address of n and reports whether it succeeded.
12011201
func stataddr(nam *Node, n *Node) bool {
12021202
if n == nil {
12031203
return false

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ func (t *Type) FuncType() *FuncType {
213213
return t.Extra.(*FuncType)
214214
}
215215

216-
// InterMethType contains Type fields specific to interface method psuedo-types.
216+
// InterMethType contains Type fields specific to interface method pseudo-types.
217217
type InterMethType struct {
218218
Nname *Node
219219
}

src/cmd/compile/internal/ssa/checkbce.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package ssa
66

77
// checkbce prints all bounds checks that are present in the function.
88
// Useful to find regressions. checkbce is only activated when with
9-
// corresponsing debug options, so it's off by default.
9+
// corresponding debug options, so it's off by default.
1010
// See test/checkbce.go
1111
func checkbce(f *Func) {
1212
if f.pass.debug <= 0 {

src/cmd/compile/internal/ssa/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ type Logger interface {
9393
// Warnl writes compiler messages in the form expected by "errorcheck" tests
9494
Warnl(line int32, fmt_ string, args ...interface{})
9595

96-
// Fowards the Debug flags from gc
96+
// Forwards the Debug flags from gc
9797
Debug_checknil() bool
9898
Debug_wb() bool
9999
}

src/cmd/compile/internal/ssa/gen/ARM64Ops.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import "strings"
1212
// - Integer types live in the low portion of registers. Upper portions are junk.
1313
// - Boolean types use the low-order byte of a register. 0=false, 1=true.
1414
// Upper bytes are junk.
15-
// - *const instructions may use a constant larger than the instuction can encode.
15+
// - *const instructions may use a constant larger than the instruction can encode.
1616
// In this case the assembler expands to multiple instructions and uses tmp
1717
// register (R27).
1818

src/cmd/compile/internal/ssa/gen/ARMOps.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import "strings"
1212
// - Integer types live in the low portion of registers. Upper portions are junk.
1313
// - Boolean types use the low-order byte of a register. 0=false, 1=true.
1414
// Upper bytes are junk.
15-
// - *const instructions may use a constant larger than the instuction can encode.
15+
// - *const instructions may use a constant larger than the instruction can encode.
1616
// In this case the assembler expands to multiple instructions and uses tmp
1717
// register (R11).
1818

src/cmd/compile/internal/ssa/gen/MIPS64Ops.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import "strings"
1212
// - Integer types live in the low portion of registers. Upper portions are junk.
1313
// - Boolean types use the low-order byte of a register. 0=false, 1=true.
1414
// Upper bytes are junk.
15-
// - *const instructions may use a constant larger than the instuction can encode.
15+
// - *const instructions may use a constant larger than the instruction can encode.
1616
// In this case the assembler expands to multiple instructions and uses tmp
1717
// register (R23).
1818

src/cmd/compile/internal/ssa/gen/MIPSOps.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import "strings"
1313
// - Boolean types use the low-order byte of a register. 0=false, 1=true.
1414
// Upper bytes are junk.
1515
// - Unused portions of AuxInt are filled by sign-extending the used portion.
16-
// - *const instructions may use a constant larger than the instuction can encode.
16+
// - *const instructions may use a constant larger than the instruction can encode.
1717
// In this case the assembler expands to multiple instructions and uses tmp
1818
// register (R23).
1919

0 commit comments

Comments
 (0)