Skip to content

Commit 7800c70

Browse files
authored
Rollup merge of #80410 - MarcoIeni:patch-1, r=jonas-schievink
rustdoc book: fix example `lib.rs` file is created only if `--lib` flag is specified
2 parents 8b43932 + f57152f commit 7800c70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/rustdoc/src/what-is-rustdoc.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ CSS, and JavaScript.
1010
Let's give it a try! Create a new project with Cargo:
1111

1212
```bash
13-
$ cargo new docs
13+
$ cargo new docs --lib
1414
$ cd docs
1515
```
1616

0 commit comments

Comments
 (0)