diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2019-05-16 12:31:43 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-16 12:31:43 -0700 |
| commit | a6be03f2e7145d65ad100bf0ff56e37e91071ae7 (patch) | |
| tree | 436d871c11321105ee8d8ac29fc4c729ad783131 /src/doc | |
| parent | 1962adea6ad9b992516ae56ad7f8c5bc33b951cb (diff) | |
| parent | 28234751bca49922023f1653f67831a81d038461 (diff) | |
| download | rust-a6be03f2e7145d65ad100bf0ff56e37e91071ae7.tar.gz rust-a6be03f2e7145d65ad100bf0ff56e37e91071ae7.zip | |
Rollup merge of #60207 - felixrabe:patch-1, r=steveklabnik
Outdent example, preserving nested fence
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/rustdoc/src/what-is-rustdoc.md | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/doc/rustdoc/src/what-is-rustdoc.md b/src/doc/rustdoc/src/what-is-rustdoc.md index 54472e35b1b..bbcacb7f3d5 100644 --- a/src/doc/rustdoc/src/what-is-rustdoc.md +++ b/src/doc/rustdoc/src/what-is-rustdoc.md @@ -98,21 +98,21 @@ documentation for them as well! `rustdoc` can also generate HTML from standalone Markdown files. Let's give it a try: create a `README.md` file with these contents: -```text - # Docs +````text +# Docs - This is a project to test out `rustdoc`. +This is a project to test out `rustdoc`. - [Here is a link!](https://www.rust-lang.org) +[Here is a link!](https://www.rust-lang.org) - ## Subheading +## Subheading - ```rust - fn foo() -> i32 { - 1 + 1 - } - ``` +```rust +fn foo() -> i32 { + 1 + 1 +} ``` +```` And call `rustdoc` on it: |
