Skip to content

Commit 96cc01b

Browse files
jayvdbytmimi
authored andcommitted
Fix typos
1 parent affb464 commit 96cc01b

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
use std::num::{NonZeroU8, NonZeroU16, NonZeroU32, NonZeroU64};
4040
```
4141
[style guide's version sorting algorithm]: https://doc.rust-lang.org/nightly/style-guide/#sorting
42-
- When parsing rustfmt configurations fails, rustfmt will now include the path to the toml file in the erorr message [#6302](https://github.com/rust-lang/rustfmt/issues/6302)
42+
- When parsing rustfmt configurations fails, rustfmt will now include the path to the toml file in the error message [#6302](https://github.com/rust-lang/rustfmt/issues/6302)
4343

4444
### Added
4545
- rustfmt now formats trailing where clauses in type aliases [#5887](https://github.com/rust-lang/rustfmt/pull/5887)
@@ -133,7 +133,7 @@
133133
### Changed
134134

135135
- `hide_parse_errors` has been soft deprecated and it's been renamed to `show_parse_errors` [#5961](https://github.com/rust-lang/rustfmt/pull/5961).
136-
- The diff output produced by `rustfmt --check` is more compatable with editors that support navigating directly to line numbers [#5971](https://github.com/rust-lang/rustfmt/pull/5971)
136+
- The diff output produced by `rustfmt --check` is more compatible with editors that support navigating directly to line numbers [#5971](https://github.com/rust-lang/rustfmt/pull/5971)
137137
- When using `version=Two`, the `trace!` macro from the [log crate] is now formatted similarly to `debug!`, `info!`, `warn!`, and `error!` [#5987](https://github.com/rust-lang/rustfmt/issues/5987).
138138

139139
[log crate]: https://crates.io/crates/log

src/test/parser.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ fn parser_errors_in_submods_are_surfaced() {
1919
{
2020
assert_eq!(&module, exp_mod_name);
2121
if let ModuleResolutionErrorKind::ParseError {
22-
file: unparseable_file,
22+
file: unparsable_file,
2323
} = kind
2424
{
2525
assert_eq!(
26-
unparseable_file,
26+
unparsable_file,
2727
PathBuf::from("tests/parser/issue-4126/invalid.rs"),
2828
);
2929
} else {

tests/source/enum.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub enum Test {
1313
pub enum Foo<'a, Y: Baz> where X: Whatever
1414
{ A, }
1515

16-
enum EmtpyWithComment {
16+
enum EmptyWithComment {
1717
// Some comment
1818
}
1919

@@ -74,7 +74,7 @@ where I: Iterator<Item = T> {
7474
}
7575

7676

77-
enum EmtpyWithComment {
77+
enum EmptyWithComment {
7878
// Some comment
7979
}
8080

@@ -94,7 +94,7 @@ fn nested_enum_test() {
9494
}
9595
}
9696

97-
pub struct EmtpyWithComment {
97+
pub struct EmptyWithComment {
9898
// FIXME: Implement this struct
9999
}
100100

tests/target/enum.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ where
1616
A,
1717
}
1818

19-
enum EmtpyWithComment {
19+
enum EmptyWithComment {
2020
// Some comment
2121
}
2222

@@ -96,7 +96,7 @@ where
9696
Right { list: I, root: T }, // Post Comment
9797
}
9898

99-
enum EmtpyWithComment {
99+
enum EmptyWithComment {
100100
// Some comment
101101
}
102102

@@ -135,7 +135,7 @@ fn nested_enum_test() {
135135
}
136136
}
137137

138-
pub struct EmtpyWithComment {
138+
pub struct EmptyWithComment {
139139
// FIXME: Implement this struct
140140
}
141141

tests/target/issue_4573.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// rustmft-use_small_heuristics:Max
33
// rustmft-merge_derives:false
44
// These are the same rustfmt configuration options that are used
5-
// in the comiler as of ce39461ca75a and 8eb7c58dbb7b
5+
// in the compiler as of ce39461ca75a and 8eb7c58dbb7b
66
// These are commits in https://github.com/rust-lang/rust
77

88
#![no_std] // inner attribute comment

0 commit comments

Comments
 (0)