From 3e97cca9de3885f2fe0d7deb776e59cc1c73146d Mon Sep 17 00:00:00 2001 From: pgxiaolianzi Date: Thu, 23 Feb 2023 15:23:40 +0800 Subject: [PATCH] all: fix typos --- src/cmd/compile/internal/ssa/prove.go | 2 +- src/cmd/internal/obj/arm64/asm7.go | 2 +- src/net/http/transport_test.go | 2 +- src/os/exec/exec_test.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cmd/compile/internal/ssa/prove.go b/src/cmd/compile/internal/ssa/prove.go index 26a349997e09ed..550eb90bedc716 100644 --- a/src/cmd/compile/internal/ssa/prove.go +++ b/src/cmd/compile/internal/ssa/prove.go @@ -908,7 +908,7 @@ func prove(f *Func) { } // One might be tempted to create a v >= ft.zero relation for // all OpPhi's composed of only provably-positive values - // but that bloats up the facts table for a very neglible gain. + // but that bloats up the facts table for a very negligible gain. // In Go itself, very few functions get improved (< 5) at a cost of 5-7% total increase // of compile time. } diff --git a/src/cmd/internal/obj/arm64/asm7.go b/src/cmd/internal/obj/arm64/asm7.go index 03844cba08d22c..8f068b3f51b0c2 100644 --- a/src/cmd/internal/obj/arm64/asm7.go +++ b/src/cmd/internal/obj/arm64/asm7.go @@ -1267,7 +1267,7 @@ func (c *ctxt7) flushpool(p *obj.Prog) { q := c.newprog() if p.Link == nil { // If p is the last instruction of the function, insert an UNDEF instruction in case the - // exection fall through to the pool. + // execution fall through to the pool. q.As = obj.AUNDEF } else { // Else insert a branch to the next instruction of p. diff --git a/src/net/http/transport_test.go b/src/net/http/transport_test.go index cb5af755dbb42b..cae98767c79b26 100644 --- a/src/net/http/transport_test.go +++ b/src/net/http/transport_test.go @@ -4969,7 +4969,7 @@ func testTLSHandshakeTrace(t *testing.T, mode testMode) { t.Fatal("Expected TLSHandshakeStart to be called, but wasn't") } if !done { - t.Fatal("Expected TLSHandshakeDone to be called, but wasnt't") + t.Fatal("Expected TLSHandshakeDone to be called, but wasn't") } } diff --git a/src/os/exec/exec_test.go b/src/os/exec/exec_test.go index c2f643a6454fcb..9f9cb598d8a92f 100644 --- a/src/os/exec/exec_test.go +++ b/src/os/exec/exec_test.go @@ -1039,7 +1039,7 @@ func TestDedupEnvEcho(t *testing.T) { func TestEnvNULCharacter(t *testing.T) { if runtime.GOOS == "plan9" { - t.Skip("plan9 explicitly allows NUL in the enviroment") + t.Skip("plan9 explicitly allows NUL in the environment") } cmd := helperCommand(t, "echoenv", "FOO", "BAR") cmd.Env = append(cmd.Environ(), "FOO=foo\x00BAR=bar")