Skip to content

Commit

Permalink
Auto merge of #4201 - mgr-inz-rafal:typos_in_docs, r=matthiaskrgr
Browse files Browse the repository at this point in the history
Typos and minor grammar corrections

Just some minor grammar issues and typos in documentation.
  • Loading branch information
bors committed Jun 13, 2019
2 parents 0814207 + 7ced26d commit 7b2a7a2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion clippy_lints/src/attrs.rs
Expand Up @@ -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.
///
Expand Down
2 changes: 1 addition & 1 deletion clippy_lints/src/double_comparison.rs
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion clippy_lints/src/functions.rs
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion clippy_lints/src/indexing_slicing.rs
Expand Up @@ -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.
///
Expand Down
2 changes: 1 addition & 1 deletion clippy_lints/src/needless_bool.rs
Expand Up @@ -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.
///
Expand Down
2 changes: 1 addition & 1 deletion clippy_lints/src/types.rs
Expand Up @@ -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
Expand Down

0 comments on commit 7b2a7a2

Please sign in to comment.