Skip to content

Commit

Permalink
Fixes docs
Browse files Browse the repository at this point in the history
  • Loading branch information
c4milo committed Nov 17, 2015
1 parent 0dadfd4 commit a4b19f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions iso9660.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Package iso9660 implements ECMA-119 standard, also known as ISO 9660.
//
// References:
// * https://en.wikipedia.org/wiki/ISO_9660
// * http://alumnus.caltech.edu/~pje/iso9660.html
Expand Down
8 changes: 5 additions & 3 deletions reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type Reader struct {
read uint32
}

// NewReader creates a new ISO9660 reader.
// NewReader creates a new ISO 9660 image reader.
func NewReader(rs io.ReadSeeker) (*Reader, error) {
// Starts reading from image data area
sector := dataAreaSector
Expand Down Expand Up @@ -76,7 +76,7 @@ func NewReader(rs io.ReadSeeker) (*Reader, error) {
}
}

// Skip skips the give number of directory records.
// Skip skips the given number of directory records.
func (r *Reader) Skip(n int) error {
var drecord File
var len byte
Expand All @@ -90,7 +90,9 @@ func (r *Reader) Skip(n int) error {
return nil
}

// Next moves onto the next directory record.
// Next moves onto the next directory record present in the image.
// It does not use the Path Table since the goal is to read everything
// from the ISO image.
func (r *Reader) Next() (os.FileInfo, error) {
if r.queue.IsEmpty() {
return nil, io.EOF
Expand Down

0 comments on commit a4b19f3

Please sign in to comment.