From: Robert Griesemer Date: Thu, 1 Apr 2010 22:58:10 +0000 (-0700) Subject: debug/macho: fix error message format X-Git-Tag: weekly.2010-04-13~80 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d6589377c6e48af1990ada22ea47e1bd131c5f62;p=gostls13.git debug/macho: fix error message format R=rsc CC=golang-dev https://golang.org/cl/836046 --- diff --git a/src/pkg/debug/macho/file.go b/src/pkg/debug/macho/file.go index 018f71e141..3aab45f6b1 100644 --- a/src/pkg/debug/macho/file.go +++ b/src/pkg/debug/macho/file.go @@ -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 }