Rollup merge of #48312 - frewsxcv:frewsxcv-section-headings, r=QuietMisdreavus

Unify 'Platform-specific behavior' documentation headings.

None
This commit is contained in:
Guillaume Gomez
2018-02-18 13:21:03 +01:00
committed by GitHub
3 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -262,7 +262,7 @@ pub fn try_clone(&self) -> io::Result<TcpStream> {
/// indefinitely. It is an error to pass the zero `Duration` to this
/// method.
///
/// # Note
/// # Platform-specific behavior
///
/// Platforms may return a different error code whenever a read times out as
/// a result of setting this option. For example Unix typically returns an
@@ -293,7 +293,7 @@ pub fn set_read_timeout(&self, dur: Option<Duration>) -> io::Result<()> {
/// indefinitely. It is an error to pass the zero [`Duration`] to this
/// method.
///
/// # Note
/// # Platform-specific behavior
///
/// Platforms may return a different error code whenever a write times out
/// as a result of setting this option. For example Unix typically returns
@@ -323,7 +323,7 @@ pub fn set_write_timeout(&self, dur: Option<Duration>) -> io::Result<()> {
///
/// If the timeout is [`None`], then [`read`] calls will block indefinitely.
///
/// # Note
/// # Platform-specific behavior
///
/// Some platforms do not provide access to the current timeout.
///
@@ -349,7 +349,7 @@ pub fn read_timeout(&self) -> io::Result<Option<Duration>> {
///
/// If the timeout is [`None`], then [`write`] calls will block indefinitely.
///
/// # Note
/// # Platform-specific behavior
///
/// Some platforms do not provide access to the current timeout.
///
+2 -2
View File
@@ -231,7 +231,7 @@ pub fn try_clone(&self) -> io::Result<UdpSocket> {
/// indefinitely. It is an error to pass the zero [`Duration`] to this
/// method.
///
/// # Note
/// # Platform-specific behavior
///
/// Platforms may return a different error code whenever a read times out as
/// a result of setting this option. For example Unix typically returns an
@@ -262,7 +262,7 @@ pub fn set_read_timeout(&self, dur: Option<Duration>) -> io::Result<()> {
/// indefinitely. It is an error to pass the zero [`Duration`] to this
/// method.
///
/// # Note
/// # Platform-specific behavior
///
/// Platforms may return a different error code whenever a write times out
/// as a result of setting this option. For example Unix typically returns
+3 -3
View File
@@ -652,7 +652,7 @@ pub fn panicking() -> bool {
/// The thread may sleep longer than the duration specified due to scheduling
/// specifics or platform-dependent functionality.
///
/// # Platform behavior
/// # Platform-specific behavior
///
/// On Unix platforms this function will not return early due to a
/// signal being received or a spurious wakeup.
@@ -676,7 +676,7 @@ pub fn sleep_ms(ms: u32) {
/// The thread may sleep longer than the duration specified due to scheduling
/// specifics or platform-dependent functionality.
///
/// # Platform behavior
/// # Platform-specific behavior
///
/// On Unix platforms this function will not return early due to a
/// signal being received or a spurious wakeup. Platforms which do not support
@@ -837,7 +837,7 @@ pub fn park_timeout_ms(ms: u32) {
///
/// See the [park documentation][park] for more details.
///
/// # Platform behavior
/// # Platform-specific behavior
///
/// Platforms which do not support nanosecond precision for sleeping will have
/// `dur` rounded up to the nearest granularity of time they can sleep for.