From b1f8c9d7a71a0e2f4e0715ce1fe01cf6bd220be2 Mon Sep 17 00:00:00 2001 From: Jack Palevich Date: Wed, 20 Jan 2010 12:53:53 +0800 Subject: [PATCH] Run code through gofmt. --- struct.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/struct.go b/struct.go index 5e75c07..d4ba6f3 100644 --- a/struct.go +++ b/struct.go @@ -279,12 +279,12 @@ func (b *structBuilder) Key(k string) Builder { // func Unmarshal(r io.Reader, val interface{}) (err os.Error) { - // If e represents a value, the answer won't get back to the - // caller. Make sure it's a pointer. - if _, ok := reflect.Typeof(val).(*reflect.PtrType); !ok { - err = os.ErrorString("Attempt to unmarshal into a non-pointer") - return - } + // If e represents a value, the answer won't get back to the + // caller. Make sure it's a pointer. + if _, ok := reflect.Typeof(val).(*reflect.PtrType); !ok { + err = os.ErrorString("Attempt to unmarshal into a non-pointer") + return + } err = UnmarshalValue(r, reflect.NewValue(val)) return }