mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
delete all uses of panicln by rewriting them using panic or,
in the tests, println+panic. gofmt some tests too. R=rsc CC=golang-dev https://golang.org/cl/741041
This commit is contained in:
parent
acfd6d5f05
commit
325cf8ef21
79 changed files with 3007 additions and 2019 deletions
|
|
@ -111,7 +111,7 @@ func valueToString(val Value) string {
|
|||
v := val
|
||||
return typ.String() + "(" + strconv.Itoa64(int64(v.Get())) + ")"
|
||||
default:
|
||||
panicln("valueToString: can't print type ", typ.String())
|
||||
panic("valueToString: can't print type " + typ.String())
|
||||
}
|
||||
return "valueToString: can't happen"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue