Commit 881966d2 authored by Shenghou Ma's avatar Shenghou Ma

cmd/go, cmd/godoc, net: fix typo

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5757050
parent fc98f282
...@@ -1112,7 +1112,7 @@ type toolchain interface { ...@@ -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() { ...@@ -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) { ...@@ -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)
} }
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment