Skip to content

Commit c429ade

Browse files
Fix typo in is_running() docs.
Co-authored-by: Mattias Buelens <[email protected]>
1 parent 09e6665 commit c429ade

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/std/src/thread/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ impl<T> JoinHandle<T> {
14421442
self.0.join()
14431443
}
14441444

1445-
/// Checks if the the associated thread is still running its main function.
1445+
/// Checks if the associated thread is still running its main function.
14461446
///
14471447
/// This might return `false` for a brief moment after the thread's main
14481448
/// function has returned, but before the thread itself has stopped running.

library/std/src/thread/scoped.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ impl<'scope, T> ScopedJoinHandle<'scope, T> {
274274
self.0.join()
275275
}
276276

277-
/// Checks if the the associated thread is still running its main function.
277+
/// Checks if the associated thread is still running its main function.
278278
///
279279
/// This might return `false` for a brief moment after the thread's main
280280
/// function has returned, but before the thread itself has stopped running.

0 commit comments

Comments
 (0)