Skip to content

Commit 6c4f4a6

Browse files
committed
Fix JoinHandle::is_finished docs about its edge case
I *think* this is how this sentence was intended, it seems to make less sense otherwise
1 parent 9200cbc commit 6c4f4a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/thread/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1850,7 +1850,7 @@ impl<T> JoinHandle<T> {
18501850
/// `is_finished`, and calling `join` if it returns `true`. This function does not block. To
18511851
/// block while waiting on the thread to finish, use [`join`][Self::join].
18521852
///
1853-
/// This might return `true` for a brief moment after the thread's main
1853+
/// This might return `false` for a brief moment after the thread's main
18541854
/// function has returned, but before the thread itself has stopped running.
18551855
/// However, once this returns `true`, [`join`][Self::join] can be expected
18561856
/// to return quickly, without blocking for any significant amount of time.

0 commit comments

Comments
 (0)