From d6589377c6e48af1990ada22ea47e1bd131c5f62 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Thu, 1 Apr 2010 15:58:10 -0700 Subject: [PATCH] debug/macho: fix error message format R=rsc CC=golang-dev https://golang.org/cl/836046 --- src/pkg/debug/macho/file.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } -- 2.50.0