mirror of
https://github.com/golang/go
synced 2024-11-25 10:07:56 -07:00
cmd/go, cmd/godoc, net: fix typo
R=golang-dev, r CC=golang-dev https://golang.org/cl/5757050
This commit is contained in:
parent
fc98f28204
commit
881966d2a5
@ -1112,7 +1112,7 @@ type toolchain interface {
|
|||||||
type noToolchain struct{}
|
type noToolchain struct{}
|
||||||
|
|
||||||
func noCompiler() error {
|
func noCompiler() error {
|
||||||
log.Fatal("unknown compiler %q", buildContext.Compiler)
|
log.Fatalf("unknown compiler %q", buildContext.Compiler)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ func initHandlers() {
|
|||||||
for _, p := range filepath.SplitList(*pkgPath) {
|
for _, p := range filepath.SplitList(*pkgPath) {
|
||||||
_, elem := filepath.Split(p)
|
_, elem := filepath.Split(p)
|
||||||
if elem == "" {
|
if elem == "" {
|
||||||
log.Fatal("invalid -path argument: %q has no final element", p)
|
log.Fatalf("invalid -path argument: %q has no final element", p)
|
||||||
}
|
}
|
||||||
fs.Bind("/src/pkg/"+elem, OS(p), "/", bindReplace)
|
fs.Bind("/src/pkg/"+elem, OS(p), "/", bindReplace)
|
||||||
}
|
}
|
||||||
|
@ -545,7 +545,7 @@ func TestProhibitionaryDialArgs(t *testing.T) {
|
|||||||
for _, tt := range prohibitionaryDialArgTests {
|
for _, tt := range prohibitionaryDialArgTests {
|
||||||
_, err = Dial(tt.net, tt.addr+":"+port)
|
_, err = Dial(tt.net, tt.addr+":"+port)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
t.Fatal("Dial(%q, %q) should fail", tt.net, tt.addr)
|
t.Fatalf("Dial(%q, %q) should fail", tt.net, tt.addr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user