Skip to content

Commit 24723fa

Browse files
committed
Document the use of available_parallelism
1 parent dca9bd0 commit 24723fa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rayon-core/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -519,9 +519,8 @@ impl<S> ThreadPoolBuilder<S> {
519519
/// may change in the future, if you wish to rely on a fixed
520520
/// number of threads, you should use this function to specify
521521
/// that number. To reproduce the current default behavior, you
522-
/// may wish to use the [`num_cpus`
523-
/// crate](https://crates.io/crates/num_cpus) to query the number
524-
/// of CPUs dynamically.
522+
/// may wish to use [`std::thread::available_parallelism`]
523+
/// to query the number of CPUs dynamically.
525524
///
526525
/// **Old environment variable:** `RAYON_NUM_THREADS` is a one-to-one
527526
/// replacement of the now deprecated `RAYON_RS_NUM_CPUS` environment

0 commit comments

Comments
 (0)