1
0
mirror of https://github.com/golang/go synced 2024-11-24 21:10:04 -07:00

debug/macho: fix error message format

R=rsc
CC=golang-dev
https://golang.org/cl/836046
This commit is contained in:
Robert Griesemer 2010-04-01 15:58:10 -07:00
parent 4a6dfda4cc
commit d6589377c6

View File

@ -126,9 +126,9 @@ type FormatError struct {
func (e *FormatError) String() string {
msg := e.msg
if e.val != nil {
msg += fmt.Sprintf(" '%v' ", e.val)
msg += fmt.Sprintf(" '%v'", e.val)
}
msg += fmt.Sprintf("in record at byte %#x", e.off)
msg += fmt.Sprintf(" in record at byte %#x", e.off)
return msg
}