From 1295d4e499b64ba0bb2b7905113c09a75a2f558e Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Fri, 13 Nov 2009 14:59:04 -0800 Subject: json: minor comment fix. I screwed up and didn't write one of the code review changes to disk before submitting. TBR=rsc R=rsc http://codereview.appspot.com/154122 --- src/pkg/json/struct.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pkg/json/struct.go') diff --git a/src/pkg/json/struct.go b/src/pkg/json/struct.go index ab07d9339..4e560ec86 100644 --- a/src/pkg/json/struct.go +++ b/src/pkg/json/struct.go @@ -289,7 +289,7 @@ func Unmarshal(s string, val interface{}) (ok bool, errtok string) { v := reflect.NewValue(val); var b *structBuilder; - // If val is a pointer to a slice, we mutate the pointee. + // If val is a pointer to a slice, we append to the slice. if ptr, ok := v.(*reflect.PtrValue); ok { if slice, ok := ptr.Elem().(*reflect.SliceValue); ok { b = &structBuilder{val: slice} -- cgit v1.2.3