Fix typos

This commit is contained in:
bytedream 2022-05-06 11:22:32 +02:00
parent df44104900
commit 7db4ca6b93

View file

@ -36,7 +36,7 @@ func NewDownloader(context context.Context, writer io.Writer, goroutines int, on
// Downloader is used to download Format's // Downloader is used to download Format's
type Downloader struct { type Downloader struct {
// The output is all written to Writer // The output is all written to Writer.
Writer io.Writer Writer io.Writer
// TempDir is the directory where the temporary segment files should be stored. // TempDir is the directory where the temporary segment files should be stored.
@ -59,7 +59,7 @@ type Downloader struct {
// cmd/crunchyroll-go/cmd/download.go for an example. // cmd/crunchyroll-go/cmd/download.go for an example.
Context context.Context Context context.Context
// Goroutines is the number of goroutines to download segments with // Goroutines is the number of goroutines to download segments with.
Goroutines int Goroutines int
// A method to call when a segment was downloaded. // A method to call when a segment was downloaded.
@ -82,7 +82,7 @@ type Downloader struct {
FFmpegOpts []string FFmpegOpts []string
} }
// download's the given format. // download downloads the given format.
func (d Downloader) download(format *Format) error { func (d Downloader) download(format *Format) error {
if err := format.InitVideo(); err != nil { if err := format.InitVideo(); err != nil {
return err return err