]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix typos in go file comments
authorMarcel Meyer <mm.marcelmeyer@gmail.com>
Sat, 7 Jan 2023 13:10:38 +0000 (13:10 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 9 Jan 2023 15:34:31 +0000 (15:34 +0000)
These typos were found by executing grep, aspell, sort, and uniq in
a pipe and searching the resulting list manually for possible typos.

    grep -r --include '*.go' -E '^// .*$' . | aspell list | sort | uniq

Change-Id: I56281eda3b178968fbf104de1f71316c1feac64f
GitHub-Last-Rev: e91c7cee340fadfa32b0c1773e4e5cd1ca567638
GitHub-Pull-Request: golang/go#57669
Reviewed-on: https://go-review.googlesource.com/c/go/+/460767
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/cmd/internal/obj/arm64/asm7.go
src/testing/fuzz.go
test/fixedbugs/issue47068.dir/a.go
test/typeparam/graph.go

index d7a28388e51c57640491274f582d69ab79ebb432..db18bc8e0ae3aa2d71d168f986f5e2bdc6844c22 100644 (file)
@@ -3215,7 +3215,7 @@ func SYSARG4(op1 int, Cn int, Cm int, op2 int) int {
        return SYSARG5(0, op1, Cn, Cm, op2)
 }
 
-// checkUnpredictable checks if the sourse and transfer registers are the same register.
+// checkUnpredictable checks if the source and transfer registers are the same register.
 // ARM64 manual says it is "constrained unpredictable" if the src and dst registers of STP/LDP are same.
 func (c *ctxt7) checkUnpredictable(p *obj.Prog, isload bool, wback bool, rn int16, rt1 int16, rt2 int16) {
        if wback && rn != REGSP && (rn == rt1 || rn == rt2) {
index 6e43ae7710faba41b84fc4ccd2f602f3e39f15a1..d31a3f81f528bc2c8b715a66fc06dff6a7cae994 100644 (file)
@@ -40,7 +40,7 @@ var (
 
 // fuzzWorkerExitCode is used as an exit code by fuzz worker processes after an
 // internal error. This distinguishes internal errors from uncontrolled panics
-// and other failiures. Keep in sync with internal/fuzz.workerExitCode.
+// and other failures. Keep in sync with internal/fuzz.workerExitCode.
 const fuzzWorkerExitCode = 70
 
 // InternalFuzzTarget is an internal type but exported because it is
index f7b780d459d274140e13bffda0ec26a8a3a057b1..30a51c1edb24d10f163675426862f67060d6eb31 100644 (file)
@@ -10,6 +10,6 @@ func A() {
                10: 0, 11: 0, 12: 0, 13: 0, 14: 0, 15: 0, 16: 0, 17: 0, 18: 0, 19: 0,
                20: 0, 21: 0, 22: 0, 23: 0, 24: 0, 25: 0, 26: 0, 27: 0, 28: 0, 29: 0}
        if len(m) != 30 {
-               panic("unepexted map length")
+               panic("unexpected map length")
        }
 }
index 38a97bcfb1e8ca9fe49efeea3bc08b7bf7334e19..5cd1faa76f523d7708df04c34f32093308281d4b 100644 (file)
@@ -36,7 +36,7 @@ type _Graph[_Node _NodeC[_Edge], _Edge _EdgeC[_Node]] struct {
        nodes []_Node
 }
 
-// _NodeC is the contraints on a node in a graph, given the _Edge type.
+// _NodeC is the constraints on a node in a graph, given the _Edge type.
 type _NodeC[_Edge any] interface {
        comparable
        Edges() []_Edge