Skip to content

Commit

Permalink
Fix typo in is_running() docs.
Browse files Browse the repository at this point in the history
Co-authored-by: Mattias Buelens <649348+MattiasBuelens@users.noreply.github.com>
  • Loading branch information
m-ou-se and MattiasBuelens committed Jan 4, 2022
1 parent 09e6665 commit c429ade
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/std/src/thread/mod.rs
Expand Up @@ -1442,7 +1442,7 @@ impl<T> JoinHandle<T> {
self.0.join()
}

/// Checks if the the associated thread is still running its main function.
/// Checks if the associated thread is still running its main function.
///
/// This might return `false` for a brief moment after the thread's main
/// function has returned, but before the thread itself has stopped running.
Expand Down
2 changes: 1 addition & 1 deletion library/std/src/thread/scoped.rs
Expand Up @@ -274,7 +274,7 @@ impl<'scope, T> ScopedJoinHandle<'scope, T> {
self.0.join()
}

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

0 comments on commit c429ade

Please sign in to comment.