]> Cypherpunks repositories - gostls13.git/commitdiff
json: minor comment fix.
authorAdam Langley <agl@golang.org>
Fri, 13 Nov 2009 22:59:04 +0000 (14:59 -0800)
committerAdam Langley <agl@golang.org>
Fri, 13 Nov 2009 22:59:04 +0000 (14:59 -0800)
I screwed up and didn't write one of the code review changes to disk
before submitting.

TBR=rsc

R=rsc
https://golang.org/cl/154122

src/pkg/json/struct.go

index ab07d93399d1abb029114c40a7b92588c0928cd3..4e560ec866f354373fd2b25a189c83c09a8896aa 100644 (file)
@@ -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}