]> git.lizzy.rs Git - rust.git/blobdiff - CONTRIBUTING.md
fix the inspector
[rust.git] / CONTRIBUTING.md
index 3928adbc9497508f974185390d0f4e708fcb5f37..8734242c6c016eac7e806205edf449b71951bf59 100644 (file)
@@ -42,13 +42,16 @@ travis build actually checks for this.
 
 Also please document your lint with a doc comment akin to the following:
 ```rust
-/// **What it does:** Describe what the lint matches.
+/// **What it does:** Checks for ... (describe what the lint matches).
 ///
-/// **Why is this bad?** Write the reason for linting the code.
+/// **Why is this bad?** Supply the reason for linting the code.
 ///
-/// **Known problems:** Hopefully none.
+/// **Known problems:** None. (Or describe where it could go wrong.)
 ///
-/// **Example:** Insert a short example if you have one
+/// **Example:**
+/// ```rust
+/// Insert a short example if you have one.
+/// ```
 ```
 
 Our `util/update_wiki.py` script can then add your lint docs to the wiki.