File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use sha2::digest::DynDigest;
1313const MAX_DOWNLOAD_RETRY : u32 = 20 ;
1414
1515/// Result of a successful download operation.
16- ///
16+ ///
1717/// Contains the computed hashes and file handle for the downloaded content.
1818pub struct DownloadResult {
1919 /// SHA-256 hash of the downloaded file
@@ -32,7 +32,7 @@ pub struct DownloadResult {
3232/// # Arguments
3333///
3434/// * `path` - Path to the file to hash
35- /// * `maxlen` - Optional maximum number of bytes to read from the file. If `None`,
35+ /// * `maxlen` - Optional maximum number of bytes to read from the file. If `None`,
3636/// the entire file is hashed. If `Some(len)`, only the first `len` bytes are hashed.
3737///
3838/// # Returns
@@ -217,10 +217,10 @@ where
217217/// ```ignore
218218/// use reqwest::blocking::Client;
219219/// use std::path::Path;
220- ///
220+ ///
221221/// let client = Client::new();
222222/// let result = download_and_hash(
223- /// &client,
223+ /// &client,
224224/// "https://example.com/file.zip",
225225/// Path::new("downloaded_file.zip"),
226226/// None, // no SHA-256 validation
You can’t perform that action at this time.
0 commit comments