diff --git a/src/doc/man/cargo-bench.adoc b/src/doc/man/cargo-bench.adoc index 2dd8f20ee14..c65c66c9ea9 100644 --- a/src/doc/man/cargo-bench.adoc +++ b/src/doc/man/cargo-bench.adoc @@ -21,7 +21,7 @@ the two dashes (`--`) are passed to the benchmark binaries and thus to _libtest_ (rustc's built in unit-test and micro-benchmarking framework). If you're passing arguments to both Cargo and the binary, the ones after `--` go to the binary, the ones before go to Cargo. For details about libtest's -arguments see the output of `cargo bench -- --help`. As an example, this will +arguments see the output of `cargo bench \-- --help`. As an example, this will run only the benchmark named `foo` (and skip other similarly named benchmarks like `foobar`): diff --git a/src/doc/man/cargo-test.adoc b/src/doc/man/cargo-test.adoc index 7f198526572..a4e6d80ed4c 100644 --- a/src/doc/man/cargo-test.adoc +++ b/src/doc/man/cargo-test.adoc @@ -21,7 +21,7 @@ dashes (`--`) are passed to the test binaries and thus to _libtest_ (rustc's built in unit-test and micro-benchmarking framework). If you're passing arguments to both Cargo and the binary, the ones after `--` go to the binary, the ones before go to Cargo. For details about libtest's arguments see the -output of `cargo test -- --help`. As an example, this will run all tests with +output of `cargo test \-- --help`. As an example, this will run all tests with `foo` in their name on 3 threads in parallel: cargo test foo -- --test-threads 3 diff --git a/src/doc/man/generated/cargo-bench.html b/src/doc/man/generated/cargo-bench.html index c25ebe82798..6694d78a7f9 100644 --- a/src/doc/man/generated/cargo-bench.html +++ b/src/doc/man/generated/cargo-bench.html @@ -22,7 +22,7 @@
--
go
to the binary, the ones before go to Cargo. For details about libtest’s
-arguments see the output of cargo bench — --help
. As an example, this will
+arguments see the output of cargo bench -- --help
. As an example, this will
run only the benchmark named foo
(and skip other similarly named benchmarks
like foobar
):
diff --git a/src/doc/man/generated/cargo-test.html b/src/doc/man/generated/cargo-test.html
index 2bf94d7ac60..faa7ee72292 100644
--- a/src/doc/man/generated/cargo-test.html
+++ b/src/doc/man/generated/cargo-test.html
@@ -22,7 +22,7 @@ --
go to the binary,
the ones before go to Cargo. For details about libtest’s arguments see the
-output of cargo test — --help
. As an example, this will run all tests with
+output of cargo test -- --help
. As an example, this will run all tests with
foo
in their name on 3 threads in parallel: