Skip to content

Commit

Permalink
Improve Decoder.Header documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jszwec committed Dec 3, 2017
1 parent 9e07beb commit a9cea83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ func (d *Decoder) Record() []string {
return d.record
}

// Header returns the first line that came from the reader.
// Header returns the first line that came from the reader, or returns the
// defined header by the caller.
func (d *Decoder) Header() []string {
header := make([]string, len(d.header))
copy(header, d.header)
Expand Down

0 comments on commit a9cea83

Please sign in to comment.