From 7db4ca6b93e0b0dbacf51e549ac6d760fa324537 Mon Sep 17 00:00:00 2001 From: bytedream Date: Fri, 6 May 2022 11:22:32 +0200 Subject: [PATCH] Fix typos --- downloader.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/downloader.go b/downloader.go index 0001347..05622cc 100644 --- a/downloader.go +++ b/downloader.go @@ -36,7 +36,7 @@ func NewDownloader(context context.Context, writer io.Writer, goroutines int, on // Downloader is used to download Format's type Downloader struct { - // The output is all written to Writer + // The output is all written to Writer. Writer io.Writer // 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. 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 // A method to call when a segment was downloaded. @@ -82,7 +82,7 @@ type Downloader struct { FFmpegOpts []string } -// download's the given format. +// download downloads the given format. func (d Downloader) download(format *Format) error { if err := format.InitVideo(); err != nil { return err