Skip to content

Commit 954361a

Browse files
committed
Update std::os module documentation.
Adds missing descriptions for the modules std::os::linux::fs and std::os::windows::io. Also adds punctuation for consistency with other descriptions.
1 parent 8c35a92 commit 954361a

File tree

9 files changed

+12
-8
lines changed

9 files changed

+12
-8
lines changed

library/std/src/os/linux/fs.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Linux-specific extensions to primitives in the `std::fs` module.
2+
13
#![stable(feature = "metadata_ext", since = "1.1.0")]
24

35
use crate::fs::Metadata;

library/std/src/os/linux/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Linux-specific definitions
1+
//! Linux-specific definitions.
22
33
#![stable(feature = "raw_ext", since = "1.1.0")]
44

library/std/src/os/linux/raw.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Linux-specific raw type definitions
1+
//! Linux-specific raw type definitions.
22
33
#![stable(feature = "raw_ext", since = "1.1.0")]
44
#![rustc_deprecated(

library/std/src/sys/unix/ext/ffi.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Unix-specific extension to the primitives in the `std::ffi` module
1+
//! Unix-specific extension to the primitives in the `std::ffi` module.
22
//!
33
//! # Examples
44
//!

library/std/src/sys/unix/ext/io.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Unix-specific extensions to general I/O primitives
1+
//! Unix-specific extensions to general I/O primitives.
22
33
#![stable(feature = "rust1", since = "1.0.0")]
44

library/std/src/sys/unix/ext/net.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#![stable(feature = "unix_socket", since = "1.10.0")]
1+
//! Unix-specific networking functionality.
22
3-
//! Unix-specific networking functionality
3+
#![stable(feature = "unix_socket", since = "1.10.0")]
44

55
#[cfg(all(test, not(target_os = "emscripten")))]
66
mod tests;

library/std/src/sys/unix/ext/raw.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Unix-specific primitives available on all unix platforms
1+
//! Unix-specific primitives available on all unix platforms.
22
33
#![stable(feature = "raw_ext", since = "1.1.0")]
44
#![rustc_deprecated(

library/std/src/sys/windows/ext/io.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Windows-specific extensions to general I/O primitives.
2+
13
#![stable(feature = "rust1", since = "1.0.0")]
24

35
use crate::fs;

library/std/src/sys/windows/ext/raw.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Windows-specific primitives
1+
//! Windows-specific primitives.
22
33
#![stable(feature = "raw_ext", since = "1.1.0")]
44

0 commit comments

Comments
 (0)