Skip to content

Commit 7860458

Browse files
committed
doc: highlight --doc only applied on lib target
1 parent af491f3 commit 7860458

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

src/doc/man/cargo-test.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ manifest settings, in which case your code will need to provide its own `main`
3838
function to handle running tests.
3939

4040
Documentation tests are also run by default, which is handled by `rustdoc`. It
41-
extracts code samples from documentation comments and executes them. See the
42-
[rustdoc book](https://doc.rust-lang.org/rustdoc/) for more information on
43-
writing doc tests.
41+
extracts code samples from documentation comments of the library target, and
42+
then executes them. See the [rustdoc book](https://doc.rust-lang.org/rustdoc/)
43+
for more information on writing doc tests.
4444

4545
## OPTIONS
4646

src/doc/man/generated_txt/cargo-test.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ DESCRIPTION
3434
its own main function to handle running tests.
3535

3636
Documentation tests are also run by default, which is handled by
37-
rustdoc. It extracts code samples from documentation comments and
38-
executes them. See the rustdoc book <https://doc.rust-lang.org/rustdoc/>
39-
for more information on writing doc tests.
37+
rustdoc. It extracts code samples from documentation comments of the
38+
library target, and then executes them. See the rustdoc book
39+
<https://doc.rust-lang.org/rustdoc/> for more information on writing doc
40+
tests.
4041

4142
OPTIONS
4243
Test Options

src/doc/src/commands/cargo-test.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ manifest settings, in which case your code will need to provide its own `main`
3838
function to handle running tests.
3939

4040
Documentation tests are also run by default, which is handled by `rustdoc`. It
41-
extracts code samples from documentation comments and executes them. See the
42-
[rustdoc book](https://doc.rust-lang.org/rustdoc/) for more information on
43-
writing doc tests.
41+
extracts code samples from documentation comments of the library target, and
42+
then executes them. See the [rustdoc book](https://doc.rust-lang.org/rustdoc/)
43+
for more information on writing doc tests.
4444

4545
## OPTIONS
4646

src/etc/man/cargo-test.1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ manifest settings, in which case your code will need to provide its own \fBmain\
3838
function to handle running tests.
3939
.sp
4040
Documentation tests are also run by default, which is handled by \fBrustdoc\fR\&. It
41-
extracts code samples from documentation comments and executes them. See the
42-
\fIrustdoc book\fR <https://doc.rust\-lang.org/rustdoc/> for more information on
43-
writing doc tests.
41+
extracts code samples from documentation comments of the library target, and
42+
then executes them. See the \fIrustdoc book\fR <https://doc.rust\-lang.org/rustdoc/>
43+
for more information on writing doc tests.
4444
.SH "OPTIONS"
4545
.SS "Test Options"
4646
.sp

0 commit comments

Comments
 (0)