diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5147595ab54..53caba6615c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -51,7 +51,7 @@ Also please document your lint with a doc comment akin to the following: /// **Example:** Insert a short example if you have one ``` -Our `util/update_wiki.py` script can then add your ilnt docs to the wiki. +Our `util/update_wiki.py` script can then add your lint docs to the wiki. ## Contributions diff --git a/src/bit_mask.rs b/src/bit_mask.rs index 3d428aa0da7..f4310db0fcb 100644 --- a/src/bit_mask.rs +++ b/src/bit_mask.rs @@ -11,7 +11,7 @@ use utils::span_lint; /// **What it does:** This lint checks for incompatible bit masks in comparisons. It is `Warn` by default. /// /// The formula for detecting if an expression of the type `_ m c` (where `` -/// is one of {`&`, '|'} and `` is one of {`!=`, `>=`, `>`, `!=`, `>=`, `>`}) can be determined from the following table: +/// is one of {`&`, `|`} and `` is one of {`!=`, `>=`, `>`, `!=`, `>=`, `>`}) can be determined from the following table: /// /// |Comparison |Bit-Op|Example |is always|Formula | /// |------------|------|------------|---------|----------------------| diff --git a/src/needless_update.rs b/src/needless_update.rs index e1e0f481848..9a314616cdc 100644 --- a/src/needless_update.rs +++ b/src/needless_update.rs @@ -10,7 +10,7 @@ use utils::span_lint; /// /// **Known problems:** None. /// -/// **Example:** `Point { x: 1, y: 0, ..zero_point }`` +/// **Example:** `Point { x: 1, y: 0, ..zero_point }` declare_lint! { pub NEEDLESS_UPDATE, Warn,