diff options
| author | bors <bors@rust-lang.org> | 2014-12-15 15:33:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-12-15 15:33:11 +0000 |
| commit | 1b97cd338b5d425b24e821e815d84005e38b390a (patch) | |
| tree | 28aadb0b5d2e8982efd923532534f6c65d1583fa /src/libstd | |
| parent | ef0bc464af110d24d4663fbe51eca3646a897308 (diff) | |
| parent | 1cb7e9fc638e1addbc3645f202ea89a42662812b (diff) | |
| download | rust-1b97cd338b5d425b24e821e815d84005e38b390a.tar.gz rust-1b97cd338b5d425b24e821e815d84005e38b390a.zip | |
auto merge of #19785 : brson/rust/rollup, r=brson
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/buffered.rs | 6 | ||||
| -rw-r--r-- | src/libstd/io/stdio.rs | 2 | ||||
| -rw-r--r-- | src/libstd/os.rs | 6 | ||||
| -rw-r--r-- | src/libstd/task.rs | 2 |
4 files changed, 8 insertions, 8 deletions
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<R: Reader> BufferedReader<R> { /// 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<W: Writer> BufferedWriter<W> { /// 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<S: Stream> BufferedStream<S> { /// 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 344012a09a0..53fac3fd3c9 100644 --- a/src/libstd/io/stdio.rs +++ b/src/libstd/io/stdio.rs @@ -127,7 +127,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 a3ecfb49ace..414ed87cfe4 100644 --- a/src/libstd/os.rs +++ b/src/libstd/os.rs @@ -378,7 +378,7 @@ pub fn getenv_as_bytes(n: &str) -> Option<Vec<u8>> { if s.is_null() { None } else { - Some(CString::new(s as *const i8, false).as_bytes_no_nul().to_vec()) + Some(CString::new(s as *const libc::c_char, false).as_bytes_no_nul().to_vec()) } }) } @@ -1237,7 +1237,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. @@ -1259,7 +1259,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 340e283708a..562afd33e2f 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(move|| { |
