Skip to content

Commit 7b2a7a2

Browse files
committed
Auto merge of rust-lang#4201 - mgr-inz-rafal:typos_in_docs, r=matthiaskrgr
Typos and minor grammar corrections Just some minor grammar issues and typos in documentation.
2 parents 0814207 + 7ced26d commit 7b2a7a2

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

clippy_lints/src/attrs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ declare_clippy_lint! {
134134

135135
declare_clippy_lint! {
136136
/// **What it does:** Checks for `allow`/`warn`/`deny`/`forbid` attributes with scoped clippy
137-
/// lints and if those lints exist in clippy. If there is a uppercase letter in the lint name
137+
/// lints and if those lints exist in clippy. If there is an uppercase letter in the lint name
138138
/// (not the tool name) and a lowercase version of this lint exists, it will suggest to lowercase
139139
/// the lint name.
140140
///

clippy_lints/src/double_comparison.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use syntax::source_map::Span;
99
use crate::utils::{snippet_with_applicability, span_lint_and_sugg, SpanlessEq};
1010

1111
declare_clippy_lint! {
12-
/// **What it does:** Checks for double comparions that could be simplified to a single expression.
12+
/// **What it does:** Checks for double comparisons that could be simplified to a single expression.
1313
///
1414
///
1515
/// **Why is this bad?** Readability.

clippy_lints/src/functions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ declare_clippy_lint! {
5656
}
5757

5858
declare_clippy_lint! {
59-
/// **What it does:** Checks for public functions that dereferences raw pointer
59+
/// **What it does:** Checks for public functions that dereference raw pointer
6060
/// arguments but are not marked unsafe.
6161
///
6262
/// **Why is this bad?** The function should probably be marked `unsafe`, since

clippy_lints/src/indexing_slicing.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ declare_clippy_lint! {
3737
}
3838

3939
declare_clippy_lint! {
40-
/// **What it does:** Checks for usage of indexing or slicing. Arrays are special cased, this lint
40+
/// **What it does:** Checks for usage of indexing or slicing. Arrays are special cases, this lint
4141
/// does report on arrays if we can tell that slicing operations are in bounds and does not
4242
/// lint on constant `usize` indexing on arrays because that is handled by rustc's `const_err` lint.
4343
///

clippy_lints/src/needless_bool.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ declare_clippy_lint! {
1919
/// **Why is this bad?** Redundant code.
2020
///
2121
/// **Known problems:** Maybe false positives: Sometimes, the two branches are
22-
/// painstakingly documented (which we of course do not detect), so they *may*
22+
/// painstakingly documented (which we, of course, do not detect), so they *may*
2323
/// have some value. Even then, the documentation can be rewritten to match the
2424
/// shorter code.
2525
///

clippy_lints/src/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,7 @@ declare_clippy_lint! {
14951495
/// checked.
14961496
///
14971497
/// **Why is this bad?** An expression like `min <= x` may misleadingly imply
1498-
/// that is is possible for `x` to be less than the minimum. Expressions like
1498+
/// that it is possible for `x` to be less than the minimum. Expressions like
14991499
/// `max < x` are probably mistakes.
15001500
///
15011501
/// **Known problems:** For `usize` the size of the current compile target will

0 commit comments

Comments
 (0)