Skip to content

Commit 5c60951

Browse files
committed
Fix attribute name.
1 parent a5077f1 commit 5c60951

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/os/windows/io/tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ fn test_niche_optimizations_socket() {
88
assert_eq!(size_of::<Option<OwnedSocket>>(), size_of::<RawSocket>());
99
assert_eq!(size_of::<Option<BorrowedSocket<'static>>>(), size_of::<RawSocket>(),);
1010
unsafe {
11-
#[cfg(target_pointer_size = "32")]
11+
#[cfg(target_pointer_width = "32")]
1212
let (min, max) = (i32::MIN as u32, i32::MAX as u32);
13-
#[cfg(target_pointer_size = "64")]
13+
#[cfg(target_pointer_width = "64")]
1414
let (min, max) = (i64::MIN as u64, i64::MAX as u64);
1515

1616
assert_eq!(OwnedSocket::from_raw_socket(min).into_raw_socket(), min);

0 commit comments

Comments
 (0)