1
0
mirror of https://github.com/golang/go synced 2024-11-17 23:14:49 -07:00

all: fix typos

Change-Id: Ica8d5e5799a4de532764ae86cdb623508d3a8e18
GitHub-Last-Rev: 3e97cca9de
GitHub-Pull-Request: golang/go#58689
Reviewed-on: https://go-review.googlesource.com/c/go/+/471021
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
This commit is contained in:
pgxiaolianzi 2023-02-27 06:51:55 +00:00 committed by Gopher Robot
parent 4d180f71dc
commit 81cd9ff7db
4 changed files with 4 additions and 4 deletions

View File

@ -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.
}

View File

@ -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.

View File

@ -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")
}
}

View File

@ -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")