Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(895)

Issue 4967056: code review 4967056: template: indirect or dereference function arguments if... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 7 months ago by r
Modified:
12 years, 7 months ago
Reviewers:
rsc
CC:
golang-dev, dsymonds
Visibility:
Public.

Description

template: indirect or dereference function arguments if necessary to match the type of the formal. Fixes issue 2235

Patch Set 1 #

Patch Set 2 : diff -r b7badceba5ec https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -1 line) Patch
M src/pkg/template/exec.go View 1 chunk +12 lines, -1 line 0 comments Download
M src/pkg/template/exec_test.go View 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 4
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 7 months ago (2011-09-06 22:17:12 UTC) #1
dsymonds
LGTM
12 years, 7 months ago (2011-09-06 22:27:10 UTC) #2
r
*** Submitted as http://code.google.com/p/go/source/detail?r=a163a464ef59 *** template: indirect or dereference function arguments if necessary to match ...
12 years, 7 months ago (2011-09-06 22:34:43 UTC) #3
rsc
12 years, 7 months ago (2011-09-06 22:40:31 UTC) #4
you can avoid a call to value.Elem() by using
    value.Type().Elem().AssignableTo(typ)
instead of
    value.Elem().Type().AssignableTo(typ)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b