@@ -56,7 +56,7 @@ func (he headerError) Error() string {
56
56
const (
57
57
// Type '0' indicates a regular file.
58
58
TypeReg = '0'
59
- TypeRegA = '\x00' // For legacy support ( use TypeReg instead)
59
+ TypeRegA = '\x00' // For legacy support; use TypeReg instead
60
60
61
61
// Type '1' to '6' are header-only flags and may not have a data body.
62
62
TypeLink = '1' // Hard link
@@ -85,7 +85,7 @@ const (
85
85
TypeGNUSparse = 'S'
86
86
87
87
// Types 'L' and 'K' are used by the GNU format for a meta file
88
- // used to store the path or link name for the next entry .
88
+ // used to store the path or link name for the next file .
89
89
// This package transparently handles these types.
90
90
TypeGNULongName = 'L'
91
91
TypeGNULongLink = 'K'
@@ -166,13 +166,12 @@ type Header struct {
166
166
//
167
167
// A file is sparse if len(SparseHoles) > 0 or Typeflag is TypeGNUSparse.
168
168
// If TypeGNUSparse is set, then the format is GNU, otherwise
169
- // the PAX format with GNU-specific record is used .
169
+ // the format is PAX (by using GNU-specific PAX records) .
170
170
//
171
171
// A sparse file consists of fragments of data, intermixed with holes
172
172
// (described by this field). A hole is semantically a block of NUL-bytes,
173
173
// but does not actually exist within the tar file.
174
- // The logical size of the file stored in the Size field, while
175
- // the holes must be sorted in ascending order,
174
+ // The holes must be sorted in ascending order,
176
175
// not overlap with each other, and not extend past the specified Size.
177
176
SparseHoles []SparseEntry
178
177
0 commit comments