From 7a6624853644fbb7b7005caae478a68df48c6b54 Mon Sep 17 00:00:00 2001 From: Eduardo Cuducos Date: Sat, 15 Aug 2026 21:04:30 -0400 Subject: [PATCH] Typos --- README.md | 9 +++------ downloader.go | 4 ++-- progress.go | 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index d419962..9f99604 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,4 @@ -# Chunk - -[![GoDoc](https://godoc.org/tangled.org/cuducos.me/chunk?status.svg)](https://godoc.org/tangled.org/cuducos.me/chunk) -[![Sponsors](https://img.shields.io/github/sponsors/cuducos)](https://github.com/sponsors/cuducos) +# Chunk [![GoDoc](https://godoc.org/tangled.org/cuducos.me/chunk?status.svg)](https://godoc.org/tangled.org/cuducos.me/chunk) Chunk is a download tool for slow and unstable servers. @@ -25,7 +22,7 @@ The [`Download`](https://pkg.go.dev/tangled.org/cuducos.me/chunk#Download) metho ```go d := chunk.DefaultDownloader() -ch := d.Dowload(urls) +ch := d.Download(urls) ``` #### Customizing some options @@ -33,7 +30,7 @@ ch := d.Dowload(urls) ```go d := chunk.DefaultDownloader() d.MaxRetries = 42 -ch := d.Dowload(urls) +ch := d.Download(urls) ``` #### Customizing everything diff --git a/downloader.go b/downloader.go index 06a87be..19fa98d 100644 --- a/downloader.go +++ b/downloader.go @@ -54,7 +54,7 @@ type DownloadStatus struct { // DownloadedFileBytes already downloaded from this URL DownloadedFileBytes int64 - // Any non-recoerable error captured during the download (this means that + // Any non-recoverable error captured during the download (this means that // some errors are ignored the download is retried instead of propagating // the error). Error error @@ -84,7 +84,7 @@ type Downloader struct { // TimeoutPerChunk is the timeout for the download of each chunk from each // URL. A chunk is a part of a file requested using the content range HTTP // header. Thus, this timeout is not the timeout for the each file or for - // the the download of every file). + // the download of every file). Timeout time.Duration // MaxParallelDownloadsPerServer controls the max number of concurrent diff --git a/progress.go b/progress.go index d9e677a..f15fafa 100644 --- a/progress.go +++ b/progress.go @@ -14,7 +14,7 @@ import ( ) // DefaultChunkDir is the directory where Chunk keeps track of each chunk -// downloaded of each file. It us created under the user's cache directory +// downloaded of each file. It is created under the user's cache directory // by default. // It can be replaced by a full path in the environment variable CHUNK_DIR. const DefaultChunkDir = "chunk" -- knotmirror 0.0.1