Skip to content

Commit

Permalink
Fix comments typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Anatol Pomazau authored and anatol committed Nov 17, 2023
1 parent b210bad commit c28edcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func getDownloadReader(f *RequestedFile) (time.Time, io.ReadSeekCloser, error) {
return modTime, r, nil
}

// we are done downloading without correctly metadata received, it is an error
// we are done downloading without correctly received metadata, it is an error
return time.Time{}, nil, d.eventError
}

Expand Down Expand Up @@ -278,7 +278,7 @@ func (d *DownloadReader) Seek(offset int64, whence int) (int64, error) {
case io.SeekCurrent:
d.offset += int(offset)
case io.SeekEnd:
// note that we cann Seek method only after the metadata is received
// note that we can call Seek method only after the metadata is received
d.offset = d.downloader.contentLength
default:
return 0, fmt.Errorf("unknown whence parameter: %v", whence)
Expand Down

0 comments on commit c28edcf

Please sign in to comment.