Skip to content

Commit

Permalink
Rollup merge of #76583 - CDirkx:os-doc, r=jonas-schievink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
RalfJung authored Sep 12, 2020
2 parents a49451c + 954361a commit 2477f07
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 8 deletions.
2 changes: 2 additions & 0 deletions library/std/src/os/linux/fs.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Linux-specific extensions to primitives in the `std::fs` module.

#![stable(feature = "metadata_ext", since = "1.1.0")]

use crate::fs::Metadata;
Expand Down
2 changes: 1 addition & 1 deletion library/std/src/os/linux/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Linux-specific definitions
//! Linux-specific definitions.

#![stable(feature = "raw_ext", since = "1.1.0")]

Expand Down
2 changes: 1 addition & 1 deletion library/std/src/os/linux/raw.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Linux-specific raw type definitions
//! Linux-specific raw type definitions.

#![stable(feature = "raw_ext", since = "1.1.0")]
#![rustc_deprecated(
Expand Down
2 changes: 1 addition & 1 deletion library/std/src/sys/unix/ext/ffi.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Unix-specific extension to the primitives in the `std::ffi` module
//! Unix-specific extension to the primitives in the `std::ffi` module.
//!
//! # Examples
//!
Expand Down
2 changes: 1 addition & 1 deletion library/std/src/sys/unix/ext/io.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Unix-specific extensions to general I/O primitives
//! Unix-specific extensions to general I/O primitives.

#![stable(feature = "rust1", since = "1.0.0")]

Expand Down
4 changes: 2 additions & 2 deletions library/std/src/sys/unix/ext/net.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![stable(feature = "unix_socket", since = "1.10.0")]
//! Unix-specific networking functionality.

//! Unix-specific networking functionality
#![stable(feature = "unix_socket", since = "1.10.0")]

#[cfg(all(test, not(target_os = "emscripten")))]
mod tests;
Expand Down
2 changes: 1 addition & 1 deletion library/std/src/sys/unix/ext/raw.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Unix-specific primitives available on all unix platforms
//! Unix-specific primitives available on all unix platforms.

#![stable(feature = "raw_ext", since = "1.1.0")]
#![rustc_deprecated(
Expand Down
2 changes: 2 additions & 0 deletions library/std/src/sys/windows/ext/io.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Windows-specific extensions to general I/O primitives.

#![stable(feature = "rust1", since = "1.0.0")]

use crate::fs;
Expand Down
2 changes: 1 addition & 1 deletion library/std/src/sys/windows/ext/raw.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Windows-specific primitives
//! Windows-specific primitives.

#![stable(feature = "raw_ext", since = "1.1.0")]

Expand Down

0 comments on commit 2477f07

Please sign in to comment.