mirror of
https://github.com/golang/go
synced 2024-11-18 01:34:44 -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:
parent
4d180f71dc
commit
81cd9ff7db
@ -908,7 +908,7 @@ func prove(f *Func) {
|
|||||||
}
|
}
|
||||||
// One might be tempted to create a v >= ft.zero relation for
|
// One might be tempted to create a v >= ft.zero relation for
|
||||||
// all OpPhi's composed of only provably-positive values
|
// 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
|
// In Go itself, very few functions get improved (< 5) at a cost of 5-7% total increase
|
||||||
// of compile time.
|
// of compile time.
|
||||||
}
|
}
|
||||||
|
@ -1267,7 +1267,7 @@ func (c *ctxt7) flushpool(p *obj.Prog) {
|
|||||||
q := c.newprog()
|
q := c.newprog()
|
||||||
if p.Link == nil {
|
if p.Link == nil {
|
||||||
// If p is the last instruction of the function, insert an UNDEF instruction in case the
|
// 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
|
q.As = obj.AUNDEF
|
||||||
} else {
|
} else {
|
||||||
// Else insert a branch to the next instruction of p.
|
// Else insert a branch to the next instruction of p.
|
||||||
|
@ -4969,7 +4969,7 @@ func testTLSHandshakeTrace(t *testing.T, mode testMode) {
|
|||||||
t.Fatal("Expected TLSHandshakeStart to be called, but wasn't")
|
t.Fatal("Expected TLSHandshakeStart to be called, but wasn't")
|
||||||
}
|
}
|
||||||
if !done {
|
if !done {
|
||||||
t.Fatal("Expected TLSHandshakeDone to be called, but wasnt't")
|
t.Fatal("Expected TLSHandshakeDone to be called, but wasn't")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1039,7 +1039,7 @@ func TestDedupEnvEcho(t *testing.T) {
|
|||||||
|
|
||||||
func TestEnvNULCharacter(t *testing.T) {
|
func TestEnvNULCharacter(t *testing.T) {
|
||||||
if runtime.GOOS == "plan9" {
|
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 := helperCommand(t, "echoenv", "FOO", "BAR")
|
||||||
cmd.Env = append(cmd.Environ(), "FOO=foo\x00BAR=bar")
|
cmd.Env = append(cmd.Environ(), "FOO=foo\x00BAR=bar")
|
||||||
|
Loading…
Reference in New Issue
Block a user