Skip to content

Commit 5133606

Browse files
author
arielb1
committed
address review comments
1 parent ea7637e commit 5133606

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/run-pass/cast-rfc0401.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ fn main()
8888
assert_eq!(u as *const u8, p as *const u8);
8989
assert_eq!(u as *const u16, p as *const u16);
9090

91-
// ptr-ptr-cast (both vk=Length)
91+
// ptr-ptr-cast (Length vtables)
9292
let mut l : [u8; 2] = [0,1];
9393
let w: *mut [u16; 2] = &mut l as *mut [u8; 2] as *mut _;
9494
let w: *mut [u16] = unsafe {&mut *w};
@@ -99,7 +99,7 @@ fn main()
9999
let l_via_str = unsafe{&*(s as *const [u8])};
100100
assert_eq!(&l, l_via_str);
101101

102-
// ptr-ptr-cast (both vk=Length, check length is preserved)
102+
// ptr-ptr-cast (Length vtables, check length is preserved)
103103
let l: [[u8; 3]; 2] = [[3, 2, 6], [4, 5, 1]];
104104
let p: *const [[u8; 3]] = &l;
105105
let p: &[[u8; 2]] = unsafe {&*(p as *const [[u8; 2]])};

0 commit comments

Comments
 (0)