Skip to content

Commit

Permalink
Adding more comments to schema.CastColumn
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfireman committed May 21, 2019
1 parent 0a60b46 commit c860bb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions schema/schema.go
Expand Up @@ -419,8 +419,8 @@ func (s *Schema) CastColumn(col []string, name string, out interface{}) error {
return fmt.Errorf("invalid field name \"%s\"", name)
}
slicev := outv.Elem()
slicev = slicev.Slice(0, 0) // Trucantes the passed-in slice.
elemt := slicev.Type().Elem()
slicev = slicev.Slice(0, 0) // Trucantes the passed-in slice.
elemt := slicev.Type().Elem() // Last Elem() needed because the pointer type.
for _, v := range col {
cast, err := f.Cast(v)
if err != nil {
Expand Down

0 comments on commit c860bb2

Please sign in to comment.