1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

b2sum: changed british spelling for american spelling

This commit is contained in:
Marras Antoine 2023-04-11 09:28:41 +02:00
parent a9e65e881c
commit c4d637125c

View file

@ -71,7 +71,7 @@ fn detect_algo(
crash!(1, "Invalid length (maximum digest length is 512 bits)") crash!(1, "Invalid length (maximum digest length is 512 bits)")
} }
// --length=0 falls back to default behaviour // --length=0 falls back to default behavior
if *length_in_bits == 0 { if *length_in_bits == 0 {
return ("BLAKE2", Box::new(Blake2b::new()) as Box<dyn Digest>, 512); return ("BLAKE2", Box::new(Blake2b::new()) as Box<dyn Digest>, 512);
} }
@ -88,7 +88,7 @@ fn detect_algo(
crash!(1, "Invalid length (expected a multiple of 8)") crash!(1, "Invalid length (expected a multiple of 8)")
} }
} }
// by default, blake2 uses 64bytes (512 bits) // by default, blake2 uses 64 bytes (512 bits)
None => ("BLAKE2", Box::new(Blake2b::new()) as Box<dyn Digest>, 512), None => ("BLAKE2", Box::new(Blake2b::new()) as Box<dyn Digest>, 512),
}, },
"b3sum" => ("BLAKE3", Box::new(Blake3::new()) as Box<dyn Digest>, 256), "b3sum" => ("BLAKE3", Box::new(Blake3::new()) as Box<dyn Digest>, 256),