about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorYoshua Wuyts <yoshuawuyts@gmail.com>2021-09-28 14:59:33 +0200
committerYoshua Wuyts <yoshuawuyts@gmail.com>2021-09-28 14:59:33 +0200
commit6cc91cb3d87fc2342664a0bf498734cdcceda771 (patch)
tree8f4b3804e4f750583e286beb99a8ca8073e464c5 /src/doc
parent83f147b3baf21acfc367a6da1045d212cd3957e4 (diff)
downloadrust-6cc91cb3d87fc2342664a0bf498734cdcceda771.tar.gz
rust-6cc91cb3d87fc2342664a0bf498734cdcceda771.zip
Rename `std::thread::available_onccurrency` to `std::thread::available_parallelism`
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/rustc/src/tests/index.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustc/src/tests/index.md b/src/doc/rustc/src/tests/index.md
index ec23d4fe0db..04e20fdd41c 100644
--- a/src/doc/rustc/src/tests/index.md
+++ b/src/doc/rustc/src/tests/index.md
@@ -161,7 +161,7 @@ The following options affect how tests are executed.
 
 Sets the number of threads to use for running tests in parallel. By default,
 uses the amount of concurrency available on the hardware as indicated by
-[`available_concurrency`].
+[`available_parallelism`].
 
 This can also be specified with the `RUST_TEST_THREADS` environment variable.
 
@@ -265,7 +265,7 @@ Experimental support for using custom test harnesses is available on the
 
 [`--test` option]: ../command-line-arguments.md#option-test
 [`-Z panic-abort-tests`]: https://github.com/rust-lang/rust/issues/67650
-[`available_concurrency`]: ../../std/thread/fn.available_concurrency.html
+[`available_parallelism`]: ../../std/thread/fn.available_parallelism.html
 [`cargo test`]: ../../cargo/commands/cargo-test.html
 [`libtest`]: ../../test/index.html
 [`main` function]: ../../reference/crates-and-source-files.html#main-functions