Skip to content

Commit

Permalink
Rollup merge of rust-lang#133337 - ColinFinck:thread-scoped-fix-typo,…
Browse files Browse the repository at this point in the history
… r=joboet

Fix typo in `std::thread::Scope::spawn` documentation.

Just a simple fix for a typo that caught my attention.
  • Loading branch information
jieyouxu authored Nov 22, 2024
2 parents cfed1c6 + 9693572 commit c792ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/src/thread/scoped.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ impl<'scope, 'env> Scope<'scope, 'env> {
/// thread. If the spawned thread panics, [`join`] will return an [`Err`] containing
/// the panic payload.
///
/// If the join handle is dropped, the spawned thread will implicitly joined at the
/// If the join handle is dropped, the spawned thread will be implicitly joined at the
/// end of the scope. In that case, if the spawned thread panics, [`scope`] will
/// panic after all threads are joined.
///
Expand Down

0 comments on commit c792ef3

Please sign in to comment.