Skip to content

Commit

Permalink
Correct comment regarding const generics
Browse files Browse the repository at this point in the history
  • Loading branch information
nbdd0121 committed Oct 10, 2021
1 parent cc22b8a commit 4ce26ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/read/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ use core::ops;
use core::ptr;
use core::slice;

// Use a helper trait since const generics can't be used due to MSRV.
// Helper trait for types that can provide an array as backing storage for `ArrayVec`.
//
// SAFETY: Implementer must not modify the content in storage.
//
// This trait is sealed.
Expand All @@ -23,6 +24,7 @@ pub unsafe trait ArrayLike {
}
}

// Use macro since const generics can't be used due to MSRV.
macro_rules! impl_array {
() => {};
($n:literal $($rest:tt)*) => {
Expand Down

0 comments on commit 4ce26ce

Please sign in to comment.