Skip to content

Commit 4e5f69c

Browse files
committed
Tweak some words improved representation
This PR has implemented improved representation. - Use "lib" instead of "lifb" - Use "triggered" instead of "triggere" - Use "blacklisted_name" instead of "blackisted_name" - Use "stabilization" instead of "stabilisation" - Use "behavior" instead of "behaviour" - Use "target" instead of "tartet" - Use "checked_add" instead of "chcked_add" - Use "anti-pattern" instead of "antipattern" - Use "suggestion" instead of "suggesttion" - Use "example" instead of "exampel" - Use "Cheat Sheet" instead of "Cheatsheet"
1 parent a3d1f28 commit 4e5f69c

16 files changed

+23
-23
lines changed

clippy_dev/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ fn get_clap_config<'a>() -> ArgMatches<'a> {
124124
* the lint count in README.md is correct\n \
125125
* the changelog contains markdown link references at the bottom\n \
126126
* all lint groups include the correct lints\n \
127-
* lint modules in `clippy_lints/*` are visible in `src/lifb.rs` via `pub mod`\n \
127+
* lint modules in `clippy_lints/*` are visible in `src/lib.rs` via `pub mod`\n \
128128
* all lints are registered in the lint store",
129129
)
130130
.arg(Arg::with_name("print-only").long("print-only").help(

clippy_dev/src/new_lint.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ fn to_camel_case(name: &str) -> String {
133133
.collect()
134134
}
135135

136-
fn get_stabilisation_version() -> String {
136+
fn get_stabilization_version() -> String {
137137
fn parse_manifest(contents: &str) -> Option<String> {
138138
let version = contents
139139
.lines()
@@ -199,7 +199,7 @@ fn get_lint_file_contents(lint: &LintData<'_>, enable_msrv: bool) -> String {
199199
},
200200
};
201201

202-
let version = get_stabilisation_version();
202+
let version = get_stabilization_version();
203203
let lint_name = lint.name;
204204
let category = lint.category;
205205
let name_camel = to_camel_case(lint.name);

clippy_lints/src/assign_ops.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ declare_clippy_lint! {
5050
/// ### Known problems
5151
/// Clippy cannot know for sure if `a op= a op b` should have
5252
/// been `a = a op a op b` or `a = a op b`/`a op= b`. Therefore, it suggests both.
53-
/// If `a op= a op b` is really the correct behaviour it should be
53+
/// If `a op= a op b` is really the correct behavior it should be
5454
/// written as `a = a op a op b` as it's less confusing.
5555
///
5656
/// ### Example

clippy_lints/src/casts/cast_slice_different_sizes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ fn expr_cast_chain_tys<'tcx>(cx: &LateContext<'tcx>, expr: &Expr<'tcx>) -> Optio
121121
let to_slice_ty = get_raw_slice_ty_mut(cast_to)?;
122122

123123
// If the expression that makes up the source of this cast is itself a cast, recursively
124-
// call `expr_cast_chain_tys` and update the end type with the final tartet type.
124+
// call `expr_cast_chain_tys` and update the end type with the final target type.
125125
// Otherwise, this cast is not immediately nested, just construct the info for this cast
126126
if let Some(prev_info) = expr_cast_chain_tys(cx, cast_expr) {
127127
Some(CastChainInfo {

clippy_lints/src/casts/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ declare_clippy_lint! {
306306
/// Checks for casts of `&T` to `&mut T` anywhere in the code.
307307
///
308308
/// ### Why is this bad?
309-
/// It’s basically guaranteed to be undefined behaviour.
309+
/// It’s basically guaranteed to be undefined behavior.
310310
/// `UnsafeCell` is the only way to obtain aliasable data that is considered
311311
/// mutable.
312312
///

clippy_lints/src/default_union_representation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ declare_clippy_lint! {
2525
///
2626
/// fn main() {
2727
/// let _x: u32 = unsafe {
28-
/// Foo { a: 0_i32 }.b // Undefined behaviour: `b` is allowed to be padding
28+
/// Foo { a: 0_i32 }.b // Undefined behavior: `b` is allowed to be padding
2929
/// };
3030
/// }
3131
/// ```
@@ -39,7 +39,7 @@ declare_clippy_lint! {
3939
///
4040
/// fn main() {
4141
/// let _x: u32 = unsafe {
42-
/// Foo { a: 0_i32 }.b // Now defined behaviour, this is just an i32 -> u32 transmute
42+
/// Foo { a: 0_i32 }.b // Now defined behavior, this is just an i32 -> u32 transmute
4343
/// };
4444
/// }
4545
/// ```

clippy_lints/src/derive.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ declare_clippy_lint! {
102102
/// types.
103103
///
104104
/// ### Why is this bad?
105-
/// To avoid surprising behaviour, these traits should
106-
/// agree and the behaviour of `Copy` cannot be overridden. In almost all
105+
/// To avoid surprising behavior, these traits should
106+
/// agree and the behavior of `Copy` cannot be overridden. In almost all
107107
/// situations a `Copy` type should have a `Clone` implementation that does
108108
/// nothing more than copy the object, which is what `#[derive(Copy, Clone)]`
109109
/// gets you.

clippy_lints/src/main_recursion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ declare_clippy_lint! {
1212
///
1313
/// ### Why is this bad?
1414
/// Apart from special setups (which we could detect following attributes like #![no_std]),
15-
/// recursing into main() seems like an unintuitive antipattern we should be able to detect.
15+
/// recursing into main() seems like an unintuitive anti-pattern we should be able to detect.
1616
///
1717
/// ### Example
1818
/// ```no_run

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1563,7 +1563,7 @@ declare_clippy_lint! {
15631563
#[clippy::version = "1.39.0"]
15641564
pub MANUAL_SATURATING_ARITHMETIC,
15651565
style,
1566-
"`.chcked_add/sub(x).unwrap_or(MAX/MIN)`"
1566+
"`.checked_add/sub(x).unwrap_or(MAX/MIN)`"
15671567
}
15681568

15691569
declare_clippy_lint! {

clippy_lints/src/mutable_debug_assertion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ declare_clippy_lint! {
1616
/// ### Why is this bad?
1717
/// In release builds `debug_assert!` macros are optimized out by the
1818
/// compiler.
19-
/// Therefore mutating something in a `debug_assert!` macro results in different behaviour
19+
/// Therefore mutating something in a `debug_assert!` macro results in different behavior
2020
/// between a release and debug build.
2121
///
2222
/// ### Example

0 commit comments

Comments
 (0)