Skip to content

Commit 09d58c1

Browse files
Update src/doc/rustdoc/src/what-is-rustdoc.md
Co-authored-by: Guillaume Gomez <[email protected]>
1 parent 0e47716 commit 09d58c1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,12 @@ docs. Instead of the `rustdoc` command, we could have done this:
8080

8181
```bash
8282
$ cargo doc
83-
$ cargo doc --open # automatically open
83+
```
84+
85+
If you want `cargo` to open the generated documentation once generated, you can use:
86+
87+
```bash
88+
$ cargo doc --open
8489
```
8590

8691
Internally, `cargo doc` calls out to `rustdoc` like this:

0 commit comments

Comments
 (0)