Răsfoiți Sursa

serial: Correct code comment for blake2b serialization

parazyd 2 ani în urmă
părinte
comite
c9a9931300
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/serial/src/types/hash.rs

+ 1 - 1
src/serial/src/types/hash.rs

@@ -48,7 +48,7 @@ impl Encodable for blake2b_simd::Hash {
 impl AsyncEncodable for blake2b_simd::Hash {
     async fn encode_async<S: AsyncWrite + Unpin + Send>(&self, s: &mut S) -> Result<usize> {
         // The hash can be of variable output length.
-        // We'll support 32 and 64 bytes, otherwise panic.
+        // We'll support 16, 32 and 64 bytes, otherwise panic.
         // This means we need 1 byte to tell the length.
         let len = self.as_bytes().len();
         if len != 16 && len != 32 && len != 64 {