From 999c2e2433bb9bed2f30025e5bea4ca353293077 Mon Sep 17 00:00:00 2001 From: Daniel Alley Date: Fri, 9 Nov 2018 22:53:49 -0500 Subject: [PATCH] Fix #[cfg] for step impl on ranges --- src/libcore/iter/range.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libcore/iter/range.rs b/src/libcore/iter/range.rs index 55addd86bc1ce..f0fd07b43cae0 100644 --- a/src/libcore/iter/range.rs +++ b/src/libcore/iter/range.rs @@ -166,14 +166,14 @@ macro_rules! step_impl_no_between { } step_impl_unsigned!(usize u8 u16); -#[cfg(not(target_pointer_witdth = "16"))] +#[cfg(not(target_pointer_width = "16"))] step_impl_unsigned!(u32); -#[cfg(target_pointer_witdth = "16")] +#[cfg(target_pointer_width = "16")] step_impl_no_between!(u32); step_impl_signed!([isize: usize] [i8: u8] [i16: u16]); -#[cfg(not(target_pointer_witdth = "16"))] +#[cfg(not(target_pointer_width = "16"))] step_impl_signed!([i32: u32]); -#[cfg(target_pointer_witdth = "16")] +#[cfg(target_pointer_width = "16")] step_impl_no_between!(i32); #[cfg(target_pointer_width = "64")] step_impl_unsigned!(u64);