Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 364820a

Browse files
committed
Auto merge of rust-lang#13566 - lnicola:therefor, r=lnicola
minor: Fix typos
2 parents f54c313 + cff7ab1 commit 364820a

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

crates/flycheck/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ struct JodChild(GroupChild);
365365
/// A handle to a cargo process used for fly-checking.
366366
struct CargoHandle {
367367
/// The handle to the actual cargo process. As we cannot cancel directly from with
368-
/// a read syscall dropping and therefor terminating the process is our best option.
368+
/// a read syscall dropping and therefore terminating the process is our best option.
369369
child: JodChild,
370370
thread: jod_thread::JoinHandle<io::Result<(bool, String)>>,
371371
receiver: Receiver<CargoMessage>,

crates/hir-expand/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ impl<'a> InFile<&'a SyntaxNode> {
814814

815815
pub fn original_syntax_node(self, db: &dyn db::AstDatabase) -> Option<InFile<SyntaxNode>> {
816816
// This kind of upmapping can only be achieved in attribute expanded files,
817-
// as we don't have node inputs otherwise and therefor can't find an `N` node in the input
817+
// as we don't have node inputs otherwise and therefore can't find an `N` node in the input
818818
if !self.file_id.is_macro() {
819819
return Some(self.map(Clone::clone));
820820
} else if !self.file_id.is_attr_macro(db) {
@@ -926,7 +926,7 @@ impl<N: AstNode> InFile<N> {
926926

927927
pub fn original_ast_node(self, db: &dyn db::AstDatabase) -> Option<InFile<N>> {
928928
// This kind of upmapping can only be achieved in attribute expanded files,
929-
// as we don't have node inputs otherwise and therefor can't find an `N` node in the input
929+
// as we don't have node inputs otherwise and therefore can't find an `N` node in the input
930930
if !self.file_id.is_macro() {
931931
return Some(self);
932932
} else if !self.file_id.is_attr_macro(db) {

crates/rust-analyzer/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ config_data! {
157157
checkOnSave_noDefaultFeatures: Option<bool> = "null",
158158
/// Override the command rust-analyzer uses instead of `cargo check` for
159159
/// diagnostics on save. The command is required to output json and
160-
/// should therefor include `--message-format=json` or a similar option.
160+
/// should therefore include `--message-format=json` or a similar option.
161161
///
162162
/// If you're changing this because you're using some tool wrapping
163163
/// Cargo, you might also want to change

crates/rust-analyzer/src/line_index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl LineEndings {
4242
loop {
4343
let idx = match find_crlf(&tail[gap_len..]) {
4444
None if crlf_seen => tail.len(),
45-
// SAFETY: buf is unchanged and therefor still contains utf8 data
45+
// SAFETY: buf is unchanged and therefore still contains utf8 data
4646
None => return (unsafe { String::from_utf8_unchecked(buf) }, LineEndings::Unix),
4747
Some(idx) => {
4848
crlf_seen = true;

crates/syntax/src/tests/sourcegen_ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ fn generate_nodes(kinds: KindsSrc<'_>, grammar: &AstSrc) -> String {
8686
.traits
8787
.iter()
8888
.filter(|trait_name| {
89-
// Loops have two expressions so this might collide, therefor manual impl it
89+
// Loops have two expressions so this might collide, therefore manual impl it
9090
node.name != "ForExpr" && node.name != "WhileExpr"
9191
|| trait_name.as_str() != "HasLoopBody"
9292
})

docs/user/generated_config.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Whether to pass `--no-default-features` to Cargo. Defaults to
173173
--
174174
Override the command rust-analyzer uses instead of `cargo check` for
175175
diagnostics on save. The command is required to output json and
176-
should therefor include `--message-format=json` or a similar option.
176+
should therefore include `--message-format=json` or a similar option.
177177

178178
If you're changing this because you're using some tool wrapping
179179
Cargo, you might also want to change

editors/code/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@
623623
]
624624
},
625625
"rust-analyzer.checkOnSave.overrideCommand": {
626-
"markdownDescription": "Override the command rust-analyzer uses instead of `cargo check` for\ndiagnostics on save. The command is required to output json and\nshould therefor include `--message-format=json` or a similar option.\n\nIf you're changing this because you're using some tool wrapping\nCargo, you might also want to change\n`#rust-analyzer.cargo.buildScripts.overrideCommand#`.\n\nIf there are multiple linked projects, this command is invoked for\neach of them, with the working directory being the project root\n(i.e., the folder containing the `Cargo.toml`).\n\nAn example command would be:\n\n```bash\ncargo check --workspace --message-format=json --all-targets\n```\n.",
626+
"markdownDescription": "Override the command rust-analyzer uses instead of `cargo check` for\ndiagnostics on save. The command is required to output json and\nshould therefore include `--message-format=json` or a similar option.\n\nIf you're changing this because you're using some tool wrapping\nCargo, you might also want to change\n`#rust-analyzer.cargo.buildScripts.overrideCommand#`.\n\nIf there are multiple linked projects, this command is invoked for\neach of them, with the working directory being the project root\n(i.e., the folder containing the `Cargo.toml`).\n\nAn example command would be:\n\n```bash\ncargo check --workspace --message-format=json --all-targets\n```\n.",
627627
"default": null,
628628
"type": [
629629
"null",

0 commit comments

Comments
 (0)