We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87df4dd commit 82c974dCopy full SHA for 82c974d
library/std/src/thread/mod.rs
@@ -412,9 +412,9 @@ impl Builder {
412
///
413
/// # Safety
414
415
- /// The caller has to ensure that no references in the supplied thread closure
416
- /// or its return type can outlive the spawned thread's lifetime. This can be
417
- /// guaranteed in two ways:
+ /// The caller has to ensure that the spawned thread does not outlive any
+ /// references in the supplied thread closure and its return type.
+ /// This can be guaranteed in two ways:
418
419
/// - ensure that [`join`][`JoinHandle::join`] is called before any referenced
420
/// data is dropped
0 commit comments