Skip to content

Commit

Permalink
doc: note on behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
de-sh committed Jan 27, 2025
1 parent 33822e7 commit b9f0076
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/human_size.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use human_size::{multiples, SpecificSize};
use serde::{de, Deserialize, Deserializer, Serializer};

// Function to convert human-readable size to bytes (already provided)
// NOTE: consider number values as byte count, e.g. "1234" is 1234 bytes.
pub fn human_size_to_bytes(s: &str) -> Result<u64, String> {
if let Ok(size) = s.parse() {
return Ok(size);
Expand Down

0 comments on commit b9f0076

Please sign in to comment.