Skip to content

Commit 738afd4

Browse files
authored
Rollup merge of rust-lang#55838 - dralley:fix-cfg-step, r=Kimundi
Fix #[cfg] for step impl on ranges ```#[cfg(target_pointer_witdth = ...)]``` is misspelled
2 parents 91bceb8 + 999c2e2 commit 738afd4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcore/iter/range.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,14 @@ macro_rules! step_impl_no_between {
166166
}
167167

168168
step_impl_unsigned!(usize u8 u16);
169-
#[cfg(not(target_pointer_witdth = "16"))]
169+
#[cfg(not(target_pointer_width = "16"))]
170170
step_impl_unsigned!(u32);
171-
#[cfg(target_pointer_witdth = "16")]
171+
#[cfg(target_pointer_width = "16")]
172172
step_impl_no_between!(u32);
173173
step_impl_signed!([isize: usize] [i8: u8] [i16: u16]);
174-
#[cfg(not(target_pointer_witdth = "16"))]
174+
#[cfg(not(target_pointer_width = "16"))]
175175
step_impl_signed!([i32: u32]);
176-
#[cfg(target_pointer_witdth = "16")]
176+
#[cfg(target_pointer_width = "16")]
177177
step_impl_no_between!(i32);
178178
#[cfg(target_pointer_width = "64")]
179179
step_impl_unsigned!(u64);

0 commit comments

Comments
 (0)