Skip to content

Commit 0377a63

Browse files
committed
Fix syntax for non-doc comments, and use crate:: instead of std::.
1 parent 187ee5c commit 0377a63

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
+6-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
use std::mem::size_of;
2-
use std::os::wasi::io::RawFd;
1+
use crate::mem::size_of;
2+
use crate::os::wasi::io::RawFd;
33

44
#[test]
55
fn test_raw_fd_layout() {
6-
/// `OwnedFd` and `BorrowedFd` use `rustc_layout_scalar_valid_range_start`
7-
/// and `rustc_layout_scalar_valid_range_end`, with values that depend on
8-
/// the bit width of `RawFd`. If this ever changes, those values will need
9-
/// to be updated.
6+
// `OwnedFd` and `BorrowedFd` use `rustc_layout_scalar_valid_range_start`
7+
// and `rustc_layout_scalar_valid_range_end`, with values that depend on
8+
// the bit width of `RawFd`. If this ever changes, those values will need
9+
// to be updated.
1010
assert_eq!(size_of::<RawFd>(), 4);
1111
}

0 commit comments

Comments
 (0)