mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 14:31:55 +00:00
Fix some typos
This commit is contained in:
parent
cd3c649adb
commit
826827fe94
@ -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
|
||||
|
||||
|
@ -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 `_ <bit_op> m <cmp_op> c` (where `<bit_op>`
|
||||
/// is one of {`&`, '|'} and `<cmp_op>` is one of {`!=`, `>=`, `>`, `!=`, `>=`, `>`}) can be determined from the following table:
|
||||
/// is one of {`&`, `|`} and `<cmp_op>` is one of {`!=`, `>=`, `>`, `!=`, `>=`, `>`}) can be determined from the following table:
|
||||
///
|
||||
/// |Comparison |Bit-Op|Example |is always|Formula |
|
||||
/// |------------|------|------------|---------|----------------------|
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user