From: Igor Zhilianin Date: Sat, 6 Oct 2018 06:10:25 +0000 (+0000) Subject: all: fix a bunch of misspellings X-Git-Tag: go1.12beta1~863 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f90e89e675443731e36c2de4bcd3cdd7316d3dfc;p=gostls13.git all: fix a bunch of misspellings Change-Id: If2954bdfc551515403706b2cd0dde94e45936e08 GitHub-Last-Rev: d4cfc41a5504cf10befefdb881d4c45986a1d1f8 GitHub-Pull-Request: golang/go#28049 Reviewed-on: https://go-review.googlesource.com/c/140299 Reviewed-by: Brad Fitzpatrick Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- diff --git a/misc/cgo/test/callback.go b/misc/cgo/test/callback.go index b88bf134bc..58e126b41b 100644 --- a/misc/cgo/test/callback.go +++ b/misc/cgo/test/callback.go @@ -295,7 +295,7 @@ func goWithString(s string) { } func testCallbackStack(t *testing.T) { - // Make cgo call and callback with different amount of stack stack available. + // Make cgo call and callback with different amount of stack available. // We do not do any explicit checks, just ensure that it does not crash. for _, f := range splitTests { f() diff --git a/misc/cgo/testplugin/unnamed1/main.go b/misc/cgo/testplugin/unnamed1/main.go index 5c1df086d7..caf09c9e89 100644 --- a/misc/cgo/testplugin/unnamed1/main.go +++ b/misc/cgo/testplugin/unnamed1/main.go @@ -9,7 +9,7 @@ import "C" func FuncInt() int { return 1 } -// Add a recursive type to to check that type equality across plugins doesn't +// Add a recursive type to check that type equality across plugins doesn't // crash. See https://golang.org/issues/19258 func FuncRecursive() X { return X{} } diff --git a/misc/cgo/testsanitizers/cc_test.go b/misc/cgo/testsanitizers/cc_test.go index f09ad52cee..218e225429 100644 --- a/misc/cgo/testsanitizers/cc_test.go +++ b/misc/cgo/testsanitizers/cc_test.go @@ -374,7 +374,7 @@ func (c *config) checkRuntime() (skip bool, err error) { } // libcgo.h sets CGO_TSAN if it detects TSAN support in the C compiler. - // Dump the preprocessor defines to check that that works. + // Dump the preprocessor defines to check that works. // (Sometimes it doesn't: see https://golang.org/issue/15983.) cmd, err := cc(c.cFlags...) if err != nil { diff --git a/misc/cgo/testshared/shared_test.go b/misc/cgo/testshared/shared_test.go index 529a2c692f..c3c7a6aab6 100644 --- a/misc/cgo/testshared/shared_test.go +++ b/misc/cgo/testshared/shared_test.go @@ -578,7 +578,7 @@ func TestNotes(t *testing.T) { } // Build a GOPATH package (depBase) into a shared library that links against the goroot -// runtime, another package (dep2) that links against the first, and and an +// runtime, another package (dep2) that links against the first, and an // executable that links against dep2. func TestTwoGopathShlibs(t *testing.T) { goCmd(t, "install", "-buildmode=shared", "-linkshared", "depBase") diff --git a/src/cmd/compile/doc.go b/src/cmd/compile/doc.go index 0dfaacb584..b68314cf73 100644 --- a/src/cmd/compile/doc.go +++ b/src/cmd/compile/doc.go @@ -125,7 +125,7 @@ directive can skip over a directive like any other comment. // For a //line comment, this is the first character of the next line, and // for a /*line comment this is the character position immediately following the closing */. // If no filename is given, the recorded filename is empty if there is also no column number; -// otherwise is is the most recently recorded filename (actual filename or filename specified +// otherwise it is the most recently recorded filename (actual filename or filename specified // by previous line directive). // If a line directive doesn't specify a column number, the column is "unknown" until // the next directive and the compiler does not report column numbers for that range. diff --git a/src/cmd/compile/internal/gc/syntax.go b/src/cmd/compile/internal/gc/syntax.go index eb2ab6b916..ab65ddebb4 100644 --- a/src/cmd/compile/internal/gc/syntax.go +++ b/src/cmd/compile/internal/gc/syntax.go @@ -45,7 +45,7 @@ type Node struct { // - ONAME nodes that refer to local variables use it to identify their stack frame position. // - ODOT, ODOTPTR, and OINDREGSP use it to indicate offset relative to their base address. // - OSTRUCTKEY uses it to store the named field's offset. - // - Named OLITERALs use it to to store their ambient iota value. + // - Named OLITERALs use it to store their ambient iota value. // Possibly still more uses. If you find any, document them. Xoffset int64 diff --git a/src/cmd/compile/internal/gc/walk.go b/src/cmd/compile/internal/gc/walk.go index 5aa2146a8c..1c398ef43c 100644 --- a/src/cmd/compile/internal/gc/walk.go +++ b/src/cmd/compile/internal/gc/walk.go @@ -34,7 +34,7 @@ func walk(fn *Node) { } } - // Propagate the used flag for typeswitch variables up to the NONAME in it's definition. + // Propagate the used flag for typeswitch variables up to the NONAME in its definition. for _, ln := range fn.Func.Dcl { if ln.Op == ONAME && (ln.Class() == PAUTO || ln.Class() == PAUTOHEAP) && ln.Name.Defn != nil && ln.Name.Defn.Op == OTYPESW && ln.Name.Used() { ln.Name.Defn.Left.Name.SetUsed(true) diff --git a/src/cmd/compile/internal/ssa/gen/PPC64.rules b/src/cmd/compile/internal/ssa/gen/PPC64.rules index 7d79c9ad50..21c12591c5 100644 --- a/src/cmd/compile/internal/ssa/gen/PPC64.rules +++ b/src/cmd/compile/internal/ssa/gen/PPC64.rules @@ -956,7 +956,7 @@ (MOVWZreg (MOVDconst [c])) -> (MOVDconst [int64(uint32(c))]) -// Lose widening ops fed to to stores +// Lose widening ops fed to stores (MOVBstore [off] {sym} ptr (MOV(B|BZ|H|HZ|W|WZ)reg x) mem) -> (MOVBstore [off] {sym} ptr x mem) (MOVHstore [off] {sym} ptr (MOV(H|HZ|W|WZ)reg x) mem) -> (MOVHstore [off] {sym} ptr x mem) (MOVWstore [off] {sym} ptr (MOV(W|WZ)reg x) mem) -> (MOVWstore [off] {sym} ptr x mem) diff --git a/src/cmd/compile/internal/ssa/layout.go b/src/cmd/compile/internal/ssa/layout.go index 15e111ae7c..78d5dc77fe 100644 --- a/src/cmd/compile/internal/ssa/layout.go +++ b/src/cmd/compile/internal/ssa/layout.go @@ -12,7 +12,7 @@ func layout(f *Func) { } // Register allocation may use a different order which has constraints -// imposed by the linear-scan algorithm. Note that that f.pass here is +// imposed by the linear-scan algorithm. Note that f.pass here is // regalloc, so the switch is conditional on -d=ssa/regalloc/test=N func layoutRegallocOrder(f *Func) []*Block { diff --git a/src/cmd/compile/internal/ssa/poset.go b/src/cmd/compile/internal/ssa/poset.go index 37b607977c..0e0e2789b1 100644 --- a/src/cmd/compile/internal/ssa/poset.go +++ b/src/cmd/compile/internal/ssa/poset.go @@ -114,7 +114,7 @@ type posetNode struct { // given that non-equality is not transitive, the only effect is that a later call // to SetEqual for the same values will fail. NonEqual checks whether it is known that // the nodes are different, either because SetNonEqual was called before, or because -// we know that that they are strictly ordered. +// we know that they are strictly ordered. // // It is implemented as a forest of DAGs; in each DAG, if node A dominates B, // it means that A