]> Cypherpunks repositories - gostls13.git/commitdiff
debug/macho: fix error message format
authorRobert Griesemer <gri@golang.org>
Thu, 1 Apr 2010 22:58:10 +0000 (15:58 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 1 Apr 2010 22:58:10 +0000 (15:58 -0700)
R=rsc
CC=golang-dev
https://golang.org/cl/836046

src/pkg/debug/macho/file.go

index 018f71e14154bf32c1a962b0615a37406206e017..3aab45f6b13e774cf4e89a38efe006d4743d7bca 100644 (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
 }