• Micah Stetson's avatar
    encoding/json: simplify (*decodeState).indirect · 51ff2ef4
    Micah Stetson authored
    Removes an incorrect code comment and some superfluous variables.
    
    The comment I removed says that struct fields which implement
    Unmarshaler must be pointers, even if they're in an addressable
    struct. That's not the case, and there's already a test in decode_test.go
    that demonstrates as much.
    
    Encoding/json has quite a few assignments of reflect.Values to extra
    variables – things like "iv := v" when there's no need to make a copy. I
    think these are left over from a previous version of the reflect API. If they
    aren't wanted, I wouldn't mind going through the package and getting
    rid of the rest of them.
    
    R=rsc
    CC=golang-dev
    https://golang.org/cl/6318047
    51ff2ef4
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...