Browse Source

Use a simplified loop.

Coda Hale 12 years ago
parent
commit
c413a4780f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      param/parse.go

+ 1
- 1
param/parse.go View File

@ -159,7 +159,7 @@ func parseSlice(key, keytail string, values []string, target reflect.Value) {
slice := reflect.MakeSlice(t, len(values), len(values)) slice := reflect.MakeSlice(t, len(values), len(values))
kp := kpath(key, keytail) kp := kpath(key, keytail)
for i, _ := range values {
for i := range values {
// We actually cheat a little bit and modify the key so we can // We actually cheat a little bit and modify the key so we can
// generate better debugging messages later // generate better debugging messages later
key := fmt.Sprintf("%s[%d]", kp, i) key := fmt.Sprintf("%s[%d]", kp, i)


Loading…
Cancel
Save