diff options
| author | bors <bors@rust-lang.org> | 2019-06-13 05:01:02 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-06-13 05:01:02 +0000 |
| commit | 7b2a7a225700d972313e23a042f8dbc6adabfbd8 (patch) | |
| tree | 4868cfd9f42933b16e32e29ad69db157f2ec277c | |
| parent | 0814207c430f6113c8f5d96cdc5223219f814ce3 (diff) | |
| parent | 7ced26d863d3d70c1c73dd0d463c89d811a4ca8a (diff) | |
| download | rust-7b2a7a225700d972313e23a042f8dbc6adabfbd8.tar.gz rust-7b2a7a225700d972313e23a042f8dbc6adabfbd8.zip | |
Auto merge of #4201 - mgr-inz-rafal:typos_in_docs, r=matthiaskrgr
Typos and minor grammar corrections Just some minor grammar issues and typos in documentation.
| -rw-r--r-- | clippy_lints/src/attrs.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/double_comparison.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/functions.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/indexing_slicing.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/needless_bool.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/types.rs | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/clippy_lints/src/attrs.rs b/clippy_lints/src/attrs.rs index 38731c08084..cdb53dbc3d5 100644 --- a/clippy_lints/src/attrs.rs +++ b/clippy_lints/src/attrs.rs @@ -134,7 +134,7 @@ declare_clippy_lint! { declare_clippy_lint! { /// **What it does:** Checks for `allow`/`warn`/`deny`/`forbid` attributes with scoped clippy - /// lints and if those lints exist in clippy. If there is a uppercase letter in the lint name + /// lints and if those lints exist in clippy. If there is an uppercase letter in the lint name /// (not the tool name) and a lowercase version of this lint exists, it will suggest to lowercase /// the lint name. /// diff --git a/clippy_lints/src/double_comparison.rs b/clippy_lints/src/double_comparison.rs index d64939d0129..0f5a88d3dde 100644 --- a/clippy_lints/src/double_comparison.rs +++ b/clippy_lints/src/double_comparison.rs @@ -9,7 +9,7 @@ use syntax::source_map::Span; use crate::utils::{snippet_with_applicability, span_lint_and_sugg, SpanlessEq}; declare_clippy_lint! { - /// **What it does:** Checks for double comparions that could be simplified to a single expression. + /// **What it does:** Checks for double comparisons that could be simplified to a single expression. /// /// /// **Why is this bad?** Readability. diff --git a/clippy_lints/src/functions.rs b/clippy_lints/src/functions.rs index 84cafd1056c..1f69b67de7b 100644 --- a/clippy_lints/src/functions.rs +++ b/clippy_lints/src/functions.rs @@ -56,7 +56,7 @@ declare_clippy_lint! { } declare_clippy_lint! { - /// **What it does:** Checks for public functions that dereferences raw pointer + /// **What it does:** Checks for public functions that dereference raw pointer /// arguments but are not marked unsafe. /// /// **Why is this bad?** The function should probably be marked `unsafe`, since diff --git a/clippy_lints/src/indexing_slicing.rs b/clippy_lints/src/indexing_slicing.rs index d0a9bb729a4..d90efd2ea96 100644 --- a/clippy_lints/src/indexing_slicing.rs +++ b/clippy_lints/src/indexing_slicing.rs @@ -37,7 +37,7 @@ declare_clippy_lint! { } declare_clippy_lint! { - /// **What it does:** Checks for usage of indexing or slicing. Arrays are special cased, this lint + /// **What it does:** Checks for usage of indexing or slicing. Arrays are special cases, this lint /// does report on arrays if we can tell that slicing operations are in bounds and does not /// lint on constant `usize` indexing on arrays because that is handled by rustc's `const_err` lint. /// diff --git a/clippy_lints/src/needless_bool.rs b/clippy_lints/src/needless_bool.rs index 43237d82053..a9b91705483 100644 --- a/clippy_lints/src/needless_bool.rs +++ b/clippy_lints/src/needless_bool.rs @@ -19,7 +19,7 @@ declare_clippy_lint! { /// **Why is this bad?** Redundant code. /// /// **Known problems:** Maybe false positives: Sometimes, the two branches are - /// painstakingly documented (which we of course do not detect), so they *may* + /// painstakingly documented (which we, of course, do not detect), so they *may* /// have some value. Even then, the documentation can be rewritten to match the /// shorter code. /// diff --git a/clippy_lints/src/types.rs b/clippy_lints/src/types.rs index c22754084bc..6fd19450846 100644 --- a/clippy_lints/src/types.rs +++ b/clippy_lints/src/types.rs @@ -1495,7 +1495,7 @@ declare_clippy_lint! { /// checked. /// /// **Why is this bad?** An expression like `min <= x` may misleadingly imply - /// that is is possible for `x` to be less than the minimum. Expressions like + /// that it is possible for `x` to be less than the minimum. Expressions like /// `max < x` are probably mistakes. /// /// **Known problems:** For `usize` the size of the current compile target will |
