about summary refs log tree commit diff
path: root/src/doc/rustdoc
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2020-12-28 19:09:29 +0000
committerGitHub <noreply@github.com>2020-12-28 19:09:29 +0000
commit7800c70fab5801228f2154968a2e2cfdee156403 (patch)
treec5d3b680332cb72f2bf7ce1f4416b2025c3b9c45 /src/doc/rustdoc
parent8b43932ae234467e25f9c53a497eb4af68dee2b3 (diff)
parentf57152f64048754640926a95e6b76b18f28574b1 (diff)
downloadrust-7800c70fab5801228f2154968a2e2cfdee156403.tar.gz
rust-7800c70fab5801228f2154968a2e2cfdee156403.zip
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
Diffstat (limited to 'src/doc/rustdoc')
-rw-r--r--src/doc/rustdoc/src/what-is-rustdoc.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/rustdoc/src/what-is-rustdoc.md b/src/doc/rustdoc/src/what-is-rustdoc.md
index 1f6dced180b..32dc1e02bb3 100644
--- a/src/doc/rustdoc/src/what-is-rustdoc.md
+++ b/src/doc/rustdoc/src/what-is-rustdoc.md
@@ -10,7 +10,7 @@ CSS, and JavaScript.
 Let's give it a try! Create a new project with Cargo:
 
 ```bash
-$ cargo new docs
+$ cargo new docs --lib
 $ cd docs
 ```