]> git.lizzy.rs Git - rust.git/commitdiff
Fix tasklist example in rustdoc book.
authorEric Huss <eric@huss.org>
Tue, 25 May 2021 13:04:22 +0000 (06:04 -0700)
committerEric Huss <eric@huss.org>
Tue, 25 May 2021 13:08:27 +0000 (06:08 -0700)
src/doc/rustdoc/src/how-to-write-documentation.md

index 688be7aedea38a17ebfd5b456c9081f1adc2caa0..f89495cca3a31c4b43f849291abbfd2a2577de87 100644 (file)
@@ -229,15 +229,13 @@ Example:
 
 ```md
 - [x] Complete task
-- [ ] IncComplete task
+- [ ] Incomplete task
 ```
 
-This will render as
+This will render as:
 
-<ul>
-    <li><input type="checkbox"></li>
-    <li><input type="checkbox" checked></li>
-</ul>
+> - [x] Complete task
+> - [ ] Incomplete task
 
 See the specification for the [task list extension] for more details.