From c429ade7604b7417021ae39c63e3c7f26014c3a3 Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Tue, 4 Jan 2022 17:38:52 +0000 Subject: [PATCH] Fix typo in is_running() docs. Co-authored-by: Mattias Buelens <649348+MattiasBuelens@users.noreply.github.com> --- library/std/src/thread/mod.rs | 2 +- library/std/src/thread/scoped.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs index 88dabfa8d22..1fdde17d0fd 100644 --- a/library/std/src/thread/mod.rs +++ b/library/std/src/thread/mod.rs @@ -1442,7 +1442,7 @@ impl JoinHandle { 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. diff --git a/library/std/src/thread/scoped.rs b/library/std/src/thread/scoped.rs index 35e3dba5411..cda86a48b24 100644 --- a/library/std/src/thread/scoped.rs +++ b/library/std/src/thread/scoped.rs @@ -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.