1
0
mirror of https://github.com/golang/go synced 2024-11-22 05:14:40 -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:
Shenghou Ma 2012-03-07 12:41:43 +08:00
parent fc98f28204
commit 881966d2a5
3 changed files with 3 additions and 3 deletions

View File

@ -1112,7 +1112,7 @@ type toolchain interface {
type noToolchain struct{}
func noCompiler() error {
log.Fatal("unknown compiler %q", buildContext.Compiler)
log.Fatalf("unknown compiler %q", buildContext.Compiler)
return nil
}

View File

@ -88,7 +88,7 @@ func initHandlers() {
for _, p := range filepath.SplitList(*pkgPath) {
_, elem := filepath.Split(p)
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)
}

View File

@ -545,7 +545,7 @@ func TestProhibitionaryDialArgs(t *testing.T) {
for _, tt := range prohibitionaryDialArgTests {
_, err = Dial(tt.net, tt.addr+":"+port)
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)
}
}
}