about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorDan Gohman <dev@sunfishcode.online>2021-08-19 12:23:04 -0700
committerDan Gohman <dev@sunfishcode.online>2021-08-19 12:23:04 -0700
commit0377a633520344c6530f21fffee4d31768c9c447 (patch)
tree00b429a704f6187b1e43512c701e29622d42abca /library/std/src
parent187ee5c824a72ad5a23b3b46d6b747ae27de2d18 (diff)
downloadrust-0377a633520344c6530f21fffee4d31768c9c447.tar.gz
rust-0377a633520344c6530f21fffee4d31768c9c447.zip
Fix syntax for non-doc comments, and use `crate::` instead of `std::`.
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/os/wasi/io/fd/tests.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/std/src/os/wasi/io/fd/tests.rs b/library/std/src/os/wasi/io/fd/tests.rs
index b276b7bafed..418274752b0 100644
--- a/library/std/src/os/wasi/io/fd/tests.rs
+++ b/library/std/src/os/wasi/io/fd/tests.rs
@@ -1,11 +1,11 @@
-use std::mem::size_of;
-use std::os::wasi::io::RawFd;
+use crate::mem::size_of;
+use crate::os::wasi::io::RawFd;
 
 #[test]
 fn test_raw_fd_layout() {
-    /// `OwnedFd` and `BorrowedFd` use `rustc_layout_scalar_valid_range_start`
-    /// and `rustc_layout_scalar_valid_range_end`, with values that depend on
-    /// the bit width of `RawFd`. If this ever changes, those values will need
-    /// to be updated.
+    // `OwnedFd` and `BorrowedFd` use `rustc_layout_scalar_valid_range_start`
+    // and `rustc_layout_scalar_valid_range_end`, with values that depend on
+    // the bit width of `RawFd`. If this ever changes, those values will need
+    // to be updated.
     assert_eq!(size_of::<RawFd>(), 4);
 }