diff --git a/src/digest/digest.cr b/src/digest/digest.cr index c55d2a84ead1..26e83621700a 100644 --- a/src/digest/digest.cr +++ b/src/digest/digest.cr @@ -191,11 +191,11 @@ abstract class Digest # # NOTE: `.dup.final` call may be used to get an intermediate hash value. # - # This method is restricted to a maximum digest size of 64 bits. Implementations that allow + # This method is restricted to a maximum digest size of 64 bytes. Implementations that allow # a larger digest size should override this method to use a larger buffer. def hexfinal(io : IO) : Nil if digest_size > 64 - raise "Digest#hexfinal(IO) can't handle digest_size over 64 bits" + raise "Digest#hexfinal(IO) can't handle digest_size over 64 bytes" end sary = uninitialized StaticArray(UInt8, 128) tmp = sary.to_slice[0, digest_size * 2]