Skip to content

Commit cc20de3

Browse files
Rollup merge of #48312 - frewsxcv:frewsxcv-section-headings, r=QuietMisdreavus
Unify 'Platform-specific behavior' documentation headings. None
2 parents 04256e7 + 0a798bd commit cc20de3

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/libstd/net/tcp.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ impl TcpStream {
262262
/// indefinitely. It is an error to pass the zero `Duration` to this
263263
/// method.
264264
///
265-
/// # Note
265+
/// # Platform-specific behavior
266266
///
267267
/// Platforms may return a different error code whenever a read times out as
268268
/// a result of setting this option. For example Unix typically returns an
@@ -293,7 +293,7 @@ impl TcpStream {
293293
/// indefinitely. It is an error to pass the zero [`Duration`] to this
294294
/// method.
295295
///
296-
/// # Note
296+
/// # Platform-specific behavior
297297
///
298298
/// Platforms may return a different error code whenever a write times out
299299
/// as a result of setting this option. For example Unix typically returns
@@ -323,7 +323,7 @@ impl TcpStream {
323323
///
324324
/// If the timeout is [`None`], then [`read`] calls will block indefinitely.
325325
///
326-
/// # Note
326+
/// # Platform-specific behavior
327327
///
328328
/// Some platforms do not provide access to the current timeout.
329329
///
@@ -349,7 +349,7 @@ impl TcpStream {
349349
///
350350
/// If the timeout is [`None`], then [`write`] calls will block indefinitely.
351351
///
352-
/// # Note
352+
/// # Platform-specific behavior
353353
///
354354
/// Some platforms do not provide access to the current timeout.
355355
///

src/libstd/net/udp.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ impl UdpSocket {
231231
/// indefinitely. It is an error to pass the zero [`Duration`] to this
232232
/// method.
233233
///
234-
/// # Note
234+
/// # Platform-specific behavior
235235
///
236236
/// Platforms may return a different error code whenever a read times out as
237237
/// a result of setting this option. For example Unix typically returns an
@@ -262,7 +262,7 @@ impl UdpSocket {
262262
/// indefinitely. It is an error to pass the zero [`Duration`] to this
263263
/// method.
264264
///
265-
/// # Note
265+
/// # Platform-specific behavior
266266
///
267267
/// Platforms may return a different error code whenever a write times out
268268
/// as a result of setting this option. For example Unix typically returns

src/libstd/thread/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ pub fn panicking() -> bool {
652652
/// The thread may sleep longer than the duration specified due to scheduling
653653
/// specifics or platform-dependent functionality.
654654
///
655-
/// # Platform behavior
655+
/// # Platform-specific behavior
656656
///
657657
/// On Unix platforms this function will not return early due to a
658658
/// signal being received or a spurious wakeup.
@@ -676,7 +676,7 @@ pub fn sleep_ms(ms: u32) {
676676
/// The thread may sleep longer than the duration specified due to scheduling
677677
/// specifics or platform-dependent functionality.
678678
///
679-
/// # Platform behavior
679+
/// # Platform-specific behavior
680680
///
681681
/// On Unix platforms this function will not return early due to a
682682
/// signal being received or a spurious wakeup. Platforms which do not support
@@ -837,7 +837,7 @@ pub fn park_timeout_ms(ms: u32) {
837837
///
838838
/// See the [park documentation][park] for more details.
839839
///
840-
/// # Platform behavior
840+
/// # Platform-specific behavior
841841
///
842842
/// Platforms which do not support nanosecond precision for sleeping will have
843843
/// `dur` rounded up to the nearest granularity of time they can sleep for.

0 commit comments

Comments
 (0)