Skip to content

Commit 874ff73

Browse files
committed
Fix docs for the yield None case on ThreadPool
1 parent 3767329 commit 874ff73

File tree

1 file changed

+2
-2
lines changed
  • rayon-core/src/thread_pool

1 file changed

+2
-2
lines changed

rayon-core/src/thread_pool/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ impl ThreadPool {
346346
/// thread is part of *this* thread pool.
347347
///
348348
/// Returns `Some(Yield::Executed)` if anything was executed, `Some(Yield::Idle)` if
349-
/// nothing was available, or `None` if this thread is not part of any pool at all.
349+
/// nothing was available, or `None` if the current thread is not part this pool.
350350
pub fn yield_now(&self) -> Option<Yield> {
351351
let curr = self.registry.current_thread()?;
352352
Some(curr.yield_now())
@@ -358,7 +358,7 @@ impl ThreadPool {
358358
/// thread is part of *this* thread pool.
359359
///
360360
/// Returns `Some(Yield::Executed)` if anything was executed, `Some(Yield::Idle)` if
361-
/// nothing was available, or `None` if this thread is not part of any pool at all.
361+
/// nothing was available, or `None` if the current thread is not part this pool.
362362
pub fn yield_local(&self) -> Option<Yield> {
363363
let curr = self.registry.current_thread()?;
364364
Some(curr.yield_local())

0 commit comments

Comments
 (0)