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:
parent
fc98f28204
commit
881966d2a5
@ -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
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user