We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10eaa0d commit a28b3c6Copy full SHA for a28b3c6
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