Skip to content

Commit 9938daf

Browse files
committed
Auto merge of #8705 - cpw2n5:spellcheck, r=Manishearth
Spellcheck I'm brand new to this so any feedback will be helpful. I set the project up locally and ran a spellcheck on it. The code changes should only be spelling corrections. I ran the build and tests and they came back successful locally. changelog: Various spelling corrections in comments and code.
2 parents c0fce5a + e475dde commit 9938daf

35 files changed

+64
-64
lines changed

.github/ISSUE_TEMPLATE/blank_issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ body:
99
attributes:
1010
label: Description
1111
description: >
12-
Please provide a discription of the issue, along with any information
12+
Please provide a description of the issue, along with any information
1313
you feel relevant to replicate it.
1414
validations:
1515
required: true

.github/ISSUE_TEMPLATE/false_negative.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ body:
2323
id: reproducer
2424
attributes:
2525
label: Reproducer
26-
description: Please provide the code and steps to repoduce the bug
26+
description: Please provide the code and steps to reproduce the bug
2727
value: |
2828
I tried this code:
2929

.github/ISSUE_TEMPLATE/false_positive.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ body:
2424
attributes:
2525
label: Reproducer
2626
description: >
27-
Please provide the code and steps to repoduce the bug together with the
27+
Please provide the code and steps to reproduce the bug together with the
2828
output from Clippy.
2929
value: |
3030
I tried this code:

.github/workflows/clippy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ on:
66
branches-ignore:
77
- auto
88
- try
9-
# Don't run Clippy tests, when only textfiles were modified
9+
# Don't run Clippy tests, when only text files were modified
1010
paths-ignore:
1111
- 'COPYRIGHT'
1212
- 'LICENSE-*'
1313
- '**.md'
1414
- '**.txt'
1515
pull_request:
16-
# Don't run Clippy tests, when only textfiles were modified
16+
# Don't run Clippy tests, when only text files were modified
1717
paths-ignore:
1818
- 'COPYRIGHT'
1919
- 'LICENSE-*'

clippy_dev/src/setup/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::path::Path;
77
const CLIPPY_DEV_DIR: &str = "clippy_dev";
88

99
/// This function verifies that the tool is being executed in the clippy directory.
10-
/// This is useful to ensure that setups only modify Clippys resources. The verification
10+
/// This is useful to ensure that setups only modify Clippy's resources. The verification
1111
/// is done by checking that `clippy_dev` is a sub directory of the current directory.
1212
///
1313
/// It will print an error message and return `false` if the directory could not be
@@ -17,7 +17,7 @@ fn verify_inside_clippy_dir() -> bool {
1717
if path.exists() && path.is_dir() {
1818
true
1919
} else {
20-
eprintln!("error: unable to verify that the working directory is clippys directory");
20+
eprintln!("error: unable to verify that the working directory is clippy's directory");
2121
false
2222
}
2323
}

clippy_lints/src/casts/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ declare_clippy_lint! {
270270
///
271271
/// ### Why is this bad?
272272
/// Casting a function pointer to an integer can have surprising results and can occur
273-
/// accidentally if parantheses are omitted from a function call. If you aren't doing anything
273+
/// accidentally if parentheses are omitted from a function call. If you aren't doing anything
274274
/// low-level with function pointers then you can opt-out of casting functions to integers in
275275
/// order to avoid mistakes. Alternatively, you can use this lint to audit all uses of function
276276
/// pointer casts in your code.

clippy_lints/src/empty_structs_with_brackets.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fn has_no_fields(cx: &EarlyContext<'_>, var_data: &VariantData, braces_span: Spa
6666
}
6767

6868
// there might still be field declarations hidden from the AST
69-
// (conditionaly compiled code using #[cfg(..)])
69+
// (conditionally compiled code using #[cfg(..)])
7070

7171
let Some(braces_span_str) = snippet_opt(cx, braces_span) else {
7272
return false;

clippy_lints/src/index_refutable_slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ fn find_slice_values(cx: &LateContext<'_>, pat: &hir::Pat<'_>) -> FxIndexMap<hir
116116
let bound_ty = cx.typeck_results().node_type(pat.hir_id);
117117
if let ty::Slice(inner_ty) | ty::Array(inner_ty, _) = bound_ty.peel_refs().kind() {
118118
// The values need to use the `ref` keyword if they can't be copied.
119-
// This will need to be adjusted if the lint want to support multable access in the future
119+
// This will need to be adjusted if the lint want to support mutable access in the future
120120
let src_is_ref = bound_ty.is_ref() && binding != hir::BindingAnnotation::Ref;
121121
let needs_ref = !(src_is_ref || is_copy(cx, *inner_ty));
122122

clippy_lints/src/match_result_ok.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ declare_clippy_lint! {
2424
/// vec.push(value)
2525
/// }
2626
///
27-
/// if let Some(valie) = iter.next().ok() {
27+
/// if let Some(value) = iter.next().ok() {
2828
/// vec.push(value)
2929
/// }
3030
/// ```
@@ -60,7 +60,7 @@ impl<'tcx> LateLintPass<'tcx> for MatchResultOk {
6060
if_chain! {
6161
if let ExprKind::MethodCall(ok_path, [ref result_types_0, ..], _) = let_expr.kind; //check is expr.ok() has type Result<T,E>.ok(, _)
6262
if let PatKind::TupleStruct(QPath::Resolved(_, x), y, _) = let_pat.kind; //get operation
63-
if method_chain_args(let_expr, &["ok"]).is_some(); //test to see if using ok() methoduse std::marker::Sized;
63+
if method_chain_args(let_expr, &["ok"]).is_some(); //test to see if using ok() method use std::marker::Sized;
6464
if is_type_diagnostic_item(cx, cx.typeck_results().expr_ty(result_types_0), sym::Result);
6565
if rustc_hir_pretty::to_string(rustc_hir_pretty::NO_ANN, |s| s.print_path(x, false)) == "Some";
6666

0 commit comments

Comments
 (0)