Skip to content

Commit 96f8471

Browse files
committed
Auto merge of #10649 - jsoref:spelling, r=Jarcho
Spelling This PR corrects misspellings identified by the [check-spelling action](https://github.com/marketplace/actions/check-spelling). The misspellings have been reported at https://github.com/jsoref/rust-clippy/actions/runs/4710771873#summary-12776860721 The action reports that the changes in this PR would make it happy: https://github.com/jsoref/rust-clippy/actions/runs/4710771874#summary-12776860722 changelog: none
2 parents 7a870ae + 6f7801f commit 96f8471

37 files changed

+52
-48
lines changed

book/src/development/proposals/syntax-tree-patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ whether the pattern matched.
139139
140140
## Pattern syntax
141141

142-
The following examples demonstate the pattern syntax:
142+
The following examples demonstrate the pattern syntax:
143143

144144

145145
#### Any (`_`)

clippy_lints/src/casts/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ declare_clippy_lint! {
638638
#[clippy::version = "1.66.0"]
639639
pub AS_PTR_CAST_MUT,
640640
nursery,
641-
"casting the result of the `&self`-taking `as_ptr` to a mutabe pointer"
641+
"casting the result of the `&self`-taking `as_ptr` to a mutable pointer"
642642
}
643643

644644
declare_clippy_lint! {

clippy_lints/src/copies.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ fn lint_same_cond(cx: &LateContext<'_>, conds: &[&Expr<'_>], ignored_ty_ids: &De
591591
conds,
592592
|e| hash_expr(cx, e),
593593
|lhs, rhs| {
594-
// Ignore eq_expr side effects iff one of the expressin kind is a method call
594+
// Ignore eq_expr side effects iff one of the expression kind is a method call
595595
// and the caller is not a mutable, including inner mutable type.
596596
if let ExprKind::MethodCall(_, caller, _, _) = lhs.kind {
597597
if method_caller_is_mutable(cx, caller, ignored_ty_ids) {

clippy_lints/src/formatting.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use rustc_span::source_map::Span;
1010

1111
declare_clippy_lint! {
1212
/// ### What it does
13-
/// Checks for usage of the non-existent `=*`, `=!` and `=-`
13+
/// Checks for usage of the nonexistent `=*`, `=!` and `=-`
1414
/// operators.
1515
///
1616
/// ### Why is this bad?

clippy_lints/src/from_over_into.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ impl<'tcx> LateLintPass<'tcx> for FromOverInto {
9494
);
9595
}
9696

97-
let message = format!("replace the `Into` implentation with `From<{}>`", middle_trait_ref.self_ty());
97+
let message = format!("replace the `Into` implementation with `From<{}>`", middle_trait_ref.self_ty());
9898
if let Some(suggestions) = convert_to_from(cx, into_trait_seg, target_ty, self_ty, impl_item_ref) {
9999
diag.multipart_suggestion(message, suggestions, Applicability::MachineApplicable);
100100
} else {

clippy_lints/src/functions/misnamed_getters.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub fn check_fn(cx: &LateContext<'_>, kind: FnKind<'_>, decl: &FnDecl<'_>, body:
4040
};
4141

4242
// Body must be &(mut) <self_data>.name
43-
// self_data is not neccessarilly self, to also lint sub-getters, etc…
43+
// self_data is not necessarily self, to also lint sub-getters, etc…
4444

4545
let block_expr = if_chain! {
4646
if let ExprKind::Block(block,_) = body.value.kind;

clippy_lints/src/functions/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ declare_clippy_lint! {
330330

331331
declare_clippy_lint! {
332332
/// ### What it does
333-
/// Lints when `impl Trait` is being used in a function's paremeters.
333+
/// Lints when `impl Trait` is being used in a function's parameters.
334334
/// ### Why is this bad?
335335
/// Turbofish syntax (`::<>`) cannot be used when `impl Trait` is being used, making `impl Trait` less powerful. Readability may also be a factor.
336336
///

clippy_lints/src/large_futures.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ declare_clippy_lint! {
1111
/// It checks for the size of a `Future` created by `async fn` or `async {}`.
1212
///
1313
/// ### Why is this bad?
14-
/// Due to the current [unideal implemention](https://github.com/rust-lang/rust/issues/69826) of `Generator`,
14+
/// Due to the current [unideal implementation](https://github.com/rust-lang/rust/issues/69826) of `Generator`,
1515
/// large size of a `Future` may cause stack overflows.
1616
///
1717
/// ### Example

clippy_lints/src/loops/manual_memcpy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use rustc_span::symbol::sym;
1515
use std::fmt::Display;
1616
use std::iter::Iterator;
1717

18-
/// Checks for for loops that sequentially copy items from one slice-like
18+
/// Checks for `for` loops that sequentially copy items from one slice-like
1919
/// object to another.
2020
pub(super) fn check<'tcx>(
2121
cx: &LateContext<'tcx>,

clippy_lints/src/manual_assert.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl<'tcx> LateLintPass<'tcx> for ManualAssert {
6464
};
6565
let cond_sugg = sugg::Sugg::hir_with_applicability(cx, cond, "..", &mut applicability).maybe_par();
6666
let sugg = format!("assert!({not}{cond_sugg}, {format_args_snip});");
67-
// we show to the user the suggestion without the comments, but when applicating the fix, include the comments in the block
67+
// we show to the user the suggestion without the comments, but when applying the fix, include the comments in the block
6868
span_lint_and_then(
6969
cx,
7070
MANUAL_ASSERT,

0 commit comments

Comments
 (0)