From f52bd28f039e7277cf5b454b864888694f670cac Mon Sep 17 00:00:00 2001 From: Lukasz Anforowicz Date: Tue, 29 Aug 2023 19:36:35 +0000 Subject: [PATCH] Fix typo in a doc comment of `unsafe_read_slice`. The `$dst` has type `&mut []` rather than `&mut [u8]`. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index cc37cca..a4f47fc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1915,7 +1915,7 @@ macro_rules! unsafe_write_num_bytes { /// Copies a &[u8] $src into a &mut [] $dst for the endianness given /// by $which (must be either to_be or to_le). /// -/// This macro is only safe to call when $src and $dst are &[u8] and &mut [u8], +/// This macro is only safe to call when $src and $dst are &[u8] and &mut [], /// respectively. The macro will panic if $src.len() != $size * $dst.len(), /// where $size represents the size of the integers encoded in $src. macro_rules! unsafe_read_slice {