Skip to content

Commit 17c6df7

Browse files
committed
Remove references to "lib" argument
1 parent 4705566 commit 17c6df7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/bin/cargo/commands/doc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub fn exec(config: &mut Config, args: &ArgMatches<'_>) -> CliResult {
6767
),
6868
_ => {
6969
return Err(CliError::from(anyhow!(
70-
r#"--scrape-examples must take "all", "examples", or "lib" as an argument"#
70+
r#"--scrape-examples must take "all" or "examples" as an argument"#
7171
)));
7272
}
7373
}),

src/doc/src/reference/unstable.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,9 +1392,9 @@ Custom named profiles have been stabilized in the 1.57 release. See the
13921392

13931393
The `--scrape-examples` argument to the `doc` command tells Rustdoc to search
13941394
crates in the current workspace for calls to functions. Those call-sites are then
1395-
included as documentation. The flag can take an argument of `all`, `lib`, or `examples`
1395+
included as documentation. The flag can take an argument of `all` or `examples`
13961396
which configures which crate in the workspace to analyze for examples. For instance:
13971397

13981398
```
1399-
cargo doc --scrape-examples examples -Z unstable-options
1399+
cargo doc -Z unstable-options --scrape-examples examples
14001400
```

0 commit comments

Comments
 (0)