Skip to content

Commit 5f50c0f

Browse files
committed
Document that &T and &mut T are Sync if T is
1 parent be8e5ba commit 5f50c0f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

library/core/src/primitive_docs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,6 +1362,7 @@ mod prim_usize {}
13621362
/// * [`Hash`]
13631363
/// * [`ToSocketAddrs`]
13641364
/// * [`Send`] \(`&T` references also require <code>T: [Sync]</code>)
1365+
/// * [`Sync`]
13651366
///
13661367
/// [`std::fmt`]: fmt
13671368
/// [`Hash`]: hash::Hash

library/std/src/primitive_docs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,6 +1362,7 @@ mod prim_usize {}
13621362
/// * [`Hash`]
13631363
/// * [`ToSocketAddrs`]
13641364
/// * [`Send`] \(`&T` references also require <code>T: [Sync]</code>)
1365+
/// * [`Sync`]
13651366
///
13661367
/// [`std::fmt`]: fmt
13671368
/// [`Hash`]: hash::Hash

0 commit comments

Comments
 (0)