]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go, cmd/godoc, net: fix typo
authorShenghou Ma <minux.ma@gmail.com>
Wed, 7 Mar 2012 04:41:43 +0000 (12:41 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Wed, 7 Mar 2012 04:41:43 +0000 (12:41 +0800)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5757050

src/cmd/go/build.go
src/cmd/godoc/godoc.go
src/pkg/net/unicast_test.go

index be0178c9f228efac792e97958382f64aaaf213f1..b31d0a4ed80eb98e2cbe5e199a8770124e6cd5f2 100644 (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
 }
 
index b290e31a893c291b12c689df79a4f5a609eec52a..01b609b05524f87c8d2c1ef92f7314b289b99f9f 100644 (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)
        }
index 8bfe2796e0fff59988d7d52d54029a0e8c146402..f164f34825fac1a575263d4e834d46c02ce485c4 100644 (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)
                }
        }
 }