aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorKazuhiro Sera <seratch@gmail.com>2018-08-23 05:06:47 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2018-08-23 15:54:07 +0000
commitad644d2e86bab85787879d41c2d2aebbd7c57db8 (patch)
tree5b48d42464b7424ee64ae1c1a8807abbe7ba3d16 /src/cmd
parentc5d38b896df504e3354d7a27f7ad86fa9661ce6b (diff)
downloadgo-ad644d2e86bab85787879d41c2d2aebbd7c57db8.tar.xz
all: fix typos detected by github.com/client9/misspell
Change-Id: Iadb3c5de8ae9ea45855013997ed70f7929a88661 GitHub-Last-Rev: ae85bcf82be8fee533e2b9901c6133921382c70a GitHub-Pull-Request: golang/go#26920 Reviewed-on: https://go-review.googlesource.com/128955 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/asm/internal/asm/operand_test.go2
-rw-r--r--src/cmd/asm/internal/asm/testdata/amd64enc_extra.s2
-rw-r--r--src/cmd/compile/internal/gc/ssa.go2
-rw-r--r--src/cmd/compile/internal/ssa/deadstore.go2
-rw-r--r--src/cmd/go/internal/cache/default_unix_test.go2
-rw-r--r--src/cmd/go/internal/modload/load.go2
-rw-r--r--src/cmd/go/internal/work/exec.go2
-rw-r--r--src/cmd/trace/annotations.go1
8 files changed, 8 insertions, 7 deletions
diff --git a/src/cmd/asm/internal/asm/operand_test.go b/src/cmd/asm/internal/asm/operand_test.go
index 1d1cf510cb..df60b71ebd 100644
--- a/src/cmd/asm/internal/asm/operand_test.go
+++ b/src/cmd/asm/internal/asm/operand_test.go
@@ -33,7 +33,7 @@ func newParser(goarch string) *Parser {
// tryParse executes parse func in panicOnError=true context.
// parse is expected to call any parsing methods that may panic.
-// Returns error gathered from recover; nil if no parse errors occured.
+// Returns error gathered from recover; nil if no parse errors occurred.
//
// For unexpected panics, calls t.Fatal.
func tryParse(t *testing.T, parse func()) (err error) {
diff --git a/src/cmd/asm/internal/asm/testdata/amd64enc_extra.s b/src/cmd/asm/internal/asm/testdata/amd64enc_extra.s
index afd1dfd313..2f0d9ecf86 100644
--- a/src/cmd/asm/internal/asm/testdata/amd64enc_extra.s
+++ b/src/cmd/asm/internal/asm/testdata/amd64enc_extra.s
@@ -911,7 +911,7 @@ TEXT asmtest(SB),DUPOK|NOSPLIT,$0
VADDPD.BCST.Z (AX), Z2, K1, Z1 // 62f1edd95808
VMAXPD.BCST (AX), Z2, K1, Z1 // 62f1ed595f08
VMAXPD.BCST.Z (AX), Z2, K1, Z1 // 62f1edd95f08
- // EVEX: surpress all exceptions (SAE).
+ // EVEX: suppress all exceptions (SAE).
VMAXPD.SAE Z3, Z2, K1, Z1 // 62f1ed595fcb or 62f1ed195fcb
VMAXPD.SAE.Z Z3, Z2, K1, Z1 // 62f1edd95fcb or 62f1ed995fcb
VMAXPD (AX), Z2, K1, Z1 // 62f1ed495f08
diff --git a/src/cmd/compile/internal/gc/ssa.go b/src/cmd/compile/internal/gc/ssa.go
index bbd2a668a5..7292963799 100644
--- a/src/cmd/compile/internal/gc/ssa.go
+++ b/src/cmd/compile/internal/gc/ssa.go
@@ -5710,7 +5710,7 @@ func (n *Node) StorageClass() ssa.StorageClass {
case PAUTO:
return ssa.ClassAuto
default:
- Fatalf("untranslateable storage class for %v: %s", n, n.Class())
+ Fatalf("untranslatable storage class for %v: %s", n, n.Class())
return 0
}
}
diff --git a/src/cmd/compile/internal/ssa/deadstore.go b/src/cmd/compile/internal/ssa/deadstore.go
index ca6bce972e..1caa61a966 100644
--- a/src/cmd/compile/internal/ssa/deadstore.go
+++ b/src/cmd/compile/internal/ssa/deadstore.go
@@ -133,7 +133,7 @@ func dse(f *Func) {
}
}
-// elimDeadAutosGeneric deletes autos that are never accessed. To acheive this
+// elimDeadAutosGeneric deletes autos that are never accessed. To achieve this
// we track the operations that the address of each auto reaches and if it only
// reaches stores then we delete all the stores. The other operations will then
// be eliminated by the dead code elimination pass.
diff --git a/src/cmd/go/internal/cache/default_unix_test.go b/src/cmd/go/internal/cache/default_unix_test.go
index a207497a42..1458201f4b 100644
--- a/src/cmd/go/internal/cache/default_unix_test.go
+++ b/src/cmd/go/internal/cache/default_unix_test.go
@@ -62,6 +62,6 @@ func TestDefaultDir(t *testing.T) {
os.Setenv("HOME", "/")
if _, showWarnings := defaultDir(); showWarnings {
// https://golang.org/issue/26280
- t.Error("Cache initalization warnings should be squelched when $GOCACHE and $XDG_CACHE_HOME are unset and $HOME is /")
+ t.Error("Cache initialization warnings should be squelched when $GOCACHE and $XDG_CACHE_HOME are unset and $HOME is /")
}
}
diff --git a/src/cmd/go/internal/modload/load.go b/src/cmd/go/internal/modload/load.go
index e6340b8bfd..6c1525da9a 100644
--- a/src/cmd/go/internal/modload/load.go
+++ b/src/cmd/go/internal/modload/load.go
@@ -758,7 +758,7 @@ func (pkg *loadPkg) stackText() string {
}
// why returns the text to use in "go mod why" output about the given package.
-// It is less ornate than the stackText but conatins the same information.
+// It is less ornate than the stackText but contains the same information.
func (pkg *loadPkg) why() string {
var buf strings.Builder
var stack []*loadPkg
diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go
index 42fa0e64ac..2822787e63 100644
--- a/src/cmd/go/internal/work/exec.go
+++ b/src/cmd/go/internal/work/exec.go
@@ -2858,7 +2858,7 @@ func useResponseFile(path string, argLen int) bool {
}
// On the Go build system, use response files about 10% of the
- // time, just to excercise this codepath.
+ // time, just to exercise this codepath.
isBuilder := os.Getenv("GO_BUILDER_NAME") != ""
if isBuilder && rand.Intn(10) == 0 {
return true
diff --git a/src/cmd/trace/annotations.go b/src/cmd/trace/annotations.go
index 96c109e0f2..8071ac8879 100644
--- a/src/cmd/trace/annotations.go
+++ b/src/cmd/trace/annotations.go
@@ -439,6 +439,7 @@ func (task *taskDesc) complete() bool {
}
// descendents returns all the task nodes in the subtree rooted from this task.
+// TODO: the method name is misspelled
func (task *taskDesc) decendents() []*taskDesc {
if task == nil {
return nil