Skip to content

Commit 40c6722

Browse files
committed
make doc comments regular comments
1 parent 494dd0b commit 40c6722

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/sys/wasi/fd.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub struct WasiFd {
1313
fn iovec<'a>(a: &'a mut [IoSliceMut<'_>]) -> &'a [wasi::Iovec] {
1414
assert_eq!(mem::size_of::<IoSliceMut<'_>>(), mem::size_of::<wasi::Iovec>());
1515
assert_eq!(mem::align_of::<IoSliceMut<'_>>(), mem::align_of::<wasi::Iovec>());
16-
/// SAFETY: `IoSliceMut` and `IoVec` have exactly the same memory layout
16+
// SAFETY: `IoSliceMut` and `IoVec` have exactly the same memory layout
1717
unsafe {
1818
mem::transmute(a)
1919
}
@@ -22,7 +22,7 @@ fn iovec<'a>(a: &'a mut [IoSliceMut<'_>]) -> &'a [wasi::Iovec] {
2222
fn ciovec<'a>(a: &'a [IoSlice<'_>]) -> &'a [wasi::Ciovec] {
2323
assert_eq!(mem::size_of::<IoSlice<'_>>(), mem::size_of::<wasi::Ciovec>());
2424
assert_eq!(mem::align_of::<IoSlice<'_>>(), mem::align_of::<wasi::Ciovec>());
25-
/// SAFETY: `IoSlice` and `CIoVec` have exactly the same memory layout
25+
// SAFETY: `IoSlice` and `CIoVec` have exactly the same memory layout
2626
unsafe {
2727
mem::transmute(a)
2828
}

0 commit comments

Comments
 (0)