Skip to content

Commit 68dc24f

Browse files
Clean up path separator in rustdoc book
1 parent 131772c commit 68dc24f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/doc/rustdoc/src/command-line-arguments.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ Rustdoc only supports HTML output, and so this flag is redundant today.
7979
Using this flag looks like this:
8080

8181
```bash
82-
$ rustdoc src/lib.rs -o target\\doc
83-
$ rustdoc src/lib.rs --output target\\doc
82+
$ rustdoc src/lib.rs -o target/doc
83+
$ rustdoc src/lib.rs --output target/doc
8484
```
8585

8686
By default, `rustdoc`'s output appears in a directory named `doc` in

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ $ cargo doc
7878
Internally, this calls out to `rustdoc` like this:
7979

8080
```bash
81-
$ rustdoc --crate-name docs srclib.rs -o <path>\docs\target\doc -L
82-
dependency=<path>docs\target\debug\deps
81+
$ rustdoc --crate-name docs src/lib.rs -o <path>/docs/target/doc -L
82+
dependency=<path>/docs/target/debug/deps
8383
```
8484

8585
You can see this with `cargo doc --verbose`.
@@ -128,4 +128,4 @@ Cargo currently does not understand standalone Markdown files, unfortunately.
128128
## Summary
129129

130130
This covers the simplest use-cases of `rustdoc`. The rest of this book will
131-
explain all of the options that `rustdoc` has, and how to use them.
131+
explain all of the options that `rustdoc` has, and how to use them.

0 commit comments

Comments
 (0)