about summary refs log tree commit diff
path: root/library/std/src/os/linux
diff options
context:
space:
mode:
authorSachin Cherian <sachinctl@protonmail.com>2021-09-17 23:23:21 +0530
committerSachin Cherian <sachinctl@protonmail.com>2021-09-17 23:23:21 +0530
commitec34aa61d6947f6bee11f13a8d0a11e61cf65b67 (patch)
tree0a138d282edb72c709a4028db839d6cc63f0bf24 /library/std/src/os/linux
parentc3c0f80d6081092faff801542dd82f0e2420152b (diff)
modify std::os docs to be more consistent
> add intra doc links
> add a usage example for the os::windows module
Diffstat (limited to 'library/std/src/os/linux')
-rw-r--r--library/std/src/os/linux/fs.rs4
-rw-r--r--library/std/src/os/linux/process.rs4
2 files changed, 6 insertions, 2 deletions
diff --git a/library/std/src/os/linux/fs.rs b/library/std/src/os/linux/fs.rs
index 9b7af97616c..9d18ccbeb24 100644
--- a/library/std/src/os/linux/fs.rs
+++ b/library/std/src/os/linux/fs.rs
@@ -1,4 +1,6 @@
-//! Linux-specific extensions to primitives in the `std::fs` module.
+//! Linux-specific extensions to primitives in the [`std::fs`] module.
+//!
+//! [`std::fs`]: crate::fs
 
 #![stable(feature = "metadata_ext", since = "1.1.0")]
 
diff --git a/library/std/src/os/linux/process.rs b/library/std/src/os/linux/process.rs
index e3e7143c851..540363c0349 100644
--- a/library/std/src/os/linux/process.rs
+++ b/library/std/src/os/linux/process.rs
@@ -1,4 +1,6 @@
-//! Linux-specific extensions to primitives in the `std::process` module.
+//! Linux-specific extensions to primitives in the [`std::process`] module.
+//!
+//! [`std::process`]: crate::process
 
 #![unstable(feature = "linux_pidfd", issue = "82971")]