Skip to content

Commit 6e848be

Browse files
committed
Indicate how the JoinHandle struct is created.
1 parent 8c63d12 commit 6e848be

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/libstd/thread/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,12 @@ impl<T> JoinInner<T> {
610610
/// Due to platform restrictions, it is not possible to `Clone` this
611611
/// handle: the ability to join a child thread is a uniquely-owned
612612
/// permission.
613+
///
614+
/// This `struct` is created by the [`thread::spawn`] function and the
615+
/// [`thread::Builder::spawn`] method.
616+
///
617+
/// [`thread::spawn`]: fn.spawn.html
618+
/// [`thread::Builder::spawn`]: struct.Builder.html#method.spawn
613619
#[stable(feature = "rust1", since = "1.0.0")]
614620
pub struct JoinHandle<T>(JoinInner<T>);
615621

0 commit comments

Comments
 (0)