Skip to content

Commit 44061e3

Browse files
authored
Update macros.rs (#2593)
1 parent b18dd5a commit 44061e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ macro_rules! transmute {
8888
use $crate::util::macro_util::core_reexport::mem::ManuallyDrop;
8989

9090
// NOTE: `repr(packed)` is important! It ensures that the size of
91-
// `Transmute` won't be rounded up to accomodate `Src`'s or `Dst`'s
91+
// `Transmute` won't be rounded up to accommodate `Src`'s or `Dst`'s
9292
// alignment, which would break the size comparison logic below.
9393
//
9494
// As an example of why this is problematic, consider `Src = [u8;
@@ -1177,7 +1177,7 @@ mod tests {
11771177
// This permits us to test that `transmute_ref!` and `transmute_mut!` work
11781178
// for types which are `Sized + !KnownLayout`. When we added support for
11791179
// slice DSTs in #1924, this new support relied on `KnownLayout`, but we
1180-
// need to make sure to remain backwards-compatible with code which ueses
1180+
// need to make sure to remain backwards-compatible with code which uses
11811181
// these macros with types which are `!KnownLayout`.
11821182
#[derive(FromBytes, IntoBytes, Immutable, PartialEq, Eq, Debug)]
11831183
#[repr(transparent)]

0 commit comments

Comments
 (0)