commit | 3e94e757eff3bfa4150b1e88fda8db98905290de | [log] [tgz] |
---|---|---|
author | Rob Pike <r@golang.org> | Tue Nov 08 14:33:07 2011 -0800 |
committer | Rob Pike <r@golang.org> | Tue Nov 08 14:33:07 2011 -0800 |
tree | 22c2f5d5319d0d0cfbc86b50af074890194349c2 | |
parent | 0e5cd9d3f6ee8e0828cf29152d7180f70a00d6c7 [diff] |
text/template: make redefinition of a template in a set more consistent. Also make it agree with the documentation. You get an error, unless you're calling Add explicitly, in which case it panics since that's almost certainly a bug. The discrepancy was caused by a panic that wasn't turned into an error along one path; deleted the offending function for clarity. R=r, rsc CC=golang-dev https://golang.org/cl/5354045