summaryrefslogtreecommitdiff
path: root/src/pkg/template/execute.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/template/execute.go')
-rw-r--r--src/pkg/template/execute.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/template/execute.go b/src/pkg/template/execute.go
index 5bc7ff7e9..464b620c9 100644
--- a/src/pkg/template/execute.go
+++ b/src/pkg/template/execute.go
@@ -114,7 +114,7 @@ func (t *Template) findVar(st *state, s string) reflect.Value {
if s == "@" {
return indirectPtr(data, numStars)
}
- for _, elem := range strings.Split(s, ".", -1) {
+ for _, elem := range strings.Split(s, ".") {
// Look up field; data must be a struct or map.
data = t.lookup(st, data, elem)
if !data.IsValid() {