Skip to content

Commit 0bc7ffc

Browse files
committed
Minor fix to macro definition
1 parent c318a3d commit 0bc7ffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub(crate) type LenUint = u32;
3636
macro_rules! assert_capacity_limit {
3737
($cap:expr) => {
3838
if std::mem::size_of::<usize>() > std::mem::size_of::<LenUint>() {
39-
if CAP > LenUint::MAX as usize {
39+
if $cap > LenUint::MAX as usize {
4040
panic!("ArrayVec: largest supported capacity is u32::MAX")
4141
}
4242
}

0 commit comments

Comments
 (0)