From 6780031540a708282be6262f820078f8e8198611 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Wed, 10 Dec 2014 13:54:56 -0500 Subject: Fix inappropriate ## headings Fixes #15499. --- src/libstd/io/buffered.rs | 6 +++--- src/libstd/io/stdio.rs | 2 +- src/libstd/os.rs | 4 ++-- src/libstd/task.rs | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/libstd') diff --git a/src/libstd/io/buffered.rs b/src/libstd/io/buffered.rs index a8de7356fe7..a16b84d0c16 100644 --- a/src/libstd/io/buffered.rs +++ b/src/libstd/io/buffered.rs @@ -80,7 +80,7 @@ impl BufferedReader { /// Gets a mutable reference to the underlying reader. /// - /// ## Warning + /// # Warning /// /// It is inadvisable to directly read from the underlying reader. pub fn get_mut(&mut self) -> &mut R { &mut self.inner } @@ -185,7 +185,7 @@ impl BufferedWriter { /// Gets a mutable reference to the underlying write. /// - /// ## Warning + /// # Warning /// /// It is inadvisable to directly read from the underlying writer. pub fn get_mut(&mut self) -> &mut W { self.inner.as_mut().unwrap() } @@ -357,7 +357,7 @@ impl BufferedStream { /// Gets a mutable reference to the underlying stream. /// - /// ## Warning + /// # Warning /// /// It is inadvisable to read directly from or write directly to the /// underlying stream. diff --git a/src/libstd/io/stdio.rs b/src/libstd/io/stdio.rs index 48c333f0733..6d6babfe699 100644 --- a/src/libstd/io/stdio.rs +++ b/src/libstd/io/stdio.rs @@ -125,7 +125,7 @@ impl StdinReader { /// /// This provides access to methods like `chars` and `lines`. /// - /// ## Example + /// # Examples /// /// ```rust /// use std::io; diff --git a/src/libstd/os.rs b/src/libstd/os.rs index 6c91010f4cb..d214cda0d12 100644 --- a/src/libstd/os.rs +++ b/src/libstd/os.rs @@ -1235,7 +1235,7 @@ impl Copy for MapOption {} /// Possible errors when creating a map. pub enum MapError { - /// ## The following are POSIX-specific + /// # The following are POSIX-specific /// /// fd was not open for reading or, if using `MapWritable`, was not open for /// writing. @@ -1257,7 +1257,7 @@ pub enum MapError { ErrZeroLength, /// Unrecognized error. The inner value is the unrecognized errno. ErrUnknown(int), - /// ## The following are Windows-specific + /// # The following are Windows-specific /// /// Unsupported combination of protection flags /// (`MapReadable`/`MapWritable`/`MapExecutable`). diff --git a/src/libstd/task.rs b/src/libstd/task.rs index c91417e611e..d179b94931d 100644 --- a/src/libstd/task.rs +++ b/src/libstd/task.rs @@ -32,7 +32,7 @@ //! the main task panics the application will exit with a non-zero //! exit code. //! -//! ## Example +//! # Examples //! //! ```rust //! spawn(proc() { -- cgit 1.4.1-3-g733a5