summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pkg/json/struct.go2
1 files changed, 1 insertions, 1 deletions
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}