Skip to content

Commit b9f0076

Browse files
author
Devdutt Shenoi
committed
doc: note on behavior
1 parent 33822e7 commit b9f0076

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils/human_size.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use human_size::{multiples, SpecificSize};
44
use serde::{de, Deserialize, Deserializer, Serializer};
55

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

0 commit comments

Comments
 (0)