Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c792ef3

Browse files
authoredNov 22, 2024
Rollup merge of rust-lang#133337 - ColinFinck:thread-scoped-fix-typo, r=joboet
Fix typo in `std::thread::Scope::spawn` documentation. Just a simple fix for a typo that caught my attention.
2 parents cfed1c6 + 9693572 commit c792ef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎std/src/thread/scoped.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ impl<'scope, 'env> Scope<'scope, 'env> {
176176
/// thread. If the spawned thread panics, [`join`] will return an [`Err`] containing
177177
/// the panic payload.
178178
///
179-
/// If the join handle is dropped, the spawned thread will implicitly joined at the
179+
/// If the join handle is dropped, the spawned thread will be implicitly joined at the
180180
/// end of the scope. In that case, if the spawned thread panics, [`scope`] will
181181
/// panic after all threads are joined.
182182
///

0 commit comments

Comments
 (0)
Failed to load comments.