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
This commit is contained in:
Mara Bos 2020-12-28 19:09:29 +00:00 committed by GitHub
commit 7800c70fab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
```