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

Issue 6405078: code review 6405078: text/template: fix bug in map indexing (Closed)

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

Description

text/template: fix bug in map indexing If the key is not present, return value of the type of the element not the type of the key. Also fix a test that should have caught this case. Fixes issue 3850.

Patch Set 1 #

Patch Set 2 : diff -r 3357d8d34ab8 https://code.google.com/p/go #

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

Messages

Total messages: 3
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
11 years, 9 months ago (2012-07-23 22:33:05 UTC) #1
dsymonds
LGTM
11 years, 9 months ago (2012-07-23 22:41:34 UTC) #2
r
11 years, 9 months ago (2012-07-23 23:19:19 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=0748cd92ed76 ***

text/template: fix bug in map indexing
If the key is not present, return value of the type of the element
not the type of the key. Also fix a test that should have caught this case.

Fixes issue 3850.

R=golang-dev, dsymonds
CC=golang-dev
http://codereview.appspot.com/6405078
Sign in to reply to this message.

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