]> git.lizzy.rs Git - rust.git/commitdiff
Outdent example, preserving nested fence
authorFelix Rabe <felix@rabe.io>
Tue, 23 Apr 2019 18:27:09 +0000 (20:27 +0200)
committerFelix Rabe <felix@rabe.io>
Tue, 23 Apr 2019 18:27:09 +0000 (20:27 +0200)
src/doc/rustdoc/src/what-is-rustdoc.md

index 54472e35b1b2c426951cb949bf4e5ac2b062c1fb..bbcacb7f3d5d9b05111fb1e2a1c52e105e2111c5 100644 (file)
@@ -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: