make doc comments regular comments
This commit is contained in:
parent
494dd0b719
commit
40c67221e2
@ -13,7 +13,7 @@ pub struct WasiFd {
|
||||
fn iovec<'a>(a: &'a mut [IoSliceMut<'_>]) -> &'a [wasi::Iovec] {
|
||||
assert_eq!(mem::size_of::<IoSliceMut<'_>>(), mem::size_of::<wasi::Iovec>());
|
||||
assert_eq!(mem::align_of::<IoSliceMut<'_>>(), mem::align_of::<wasi::Iovec>());
|
||||
/// SAFETY: `IoSliceMut` and `IoVec` have exactly the same memory layout
|
||||
// SAFETY: `IoSliceMut` and `IoVec` have exactly the same memory layout
|
||||
unsafe {
|
||||
mem::transmute(a)
|
||||
}
|
||||
@ -22,7 +22,7 @@ fn iovec<'a>(a: &'a mut [IoSliceMut<'_>]) -> &'a [wasi::Iovec] {
|
||||
fn ciovec<'a>(a: &'a [IoSlice<'_>]) -> &'a [wasi::Ciovec] {
|
||||
assert_eq!(mem::size_of::<IoSlice<'_>>(), mem::size_of::<wasi::Ciovec>());
|
||||
assert_eq!(mem::align_of::<IoSlice<'_>>(), mem::align_of::<wasi::Ciovec>());
|
||||
/// SAFETY: `IoSlice` and `CIoVec` have exactly the same memory layout
|
||||
// SAFETY: `IoSlice` and `CIoVec` have exactly the same memory layout
|
||||
unsafe {
|
||||
mem::transmute(a)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user