diff options
author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-04-12 20:56:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-12 20:56:21 +0200 |
commit | 331e7c365962619f14f840eb4c6363a13717f148 (patch) | |
tree | b647c38e2c1f4eb82c7a8fd71b2f7b4163184318 /compiler/rustc_target | |
parent | 661b33f5247debc4e0cd948caa388997e18e9cb8 (diff) | |
parent | 40f12c68ea9fe0d80456c27bb0ab8cbbc87b021c (diff) | |
download | rust-331e7c365962619f14f840eb4c6363a13717f148.tar.gz |
Rollup merge of #110153 - DaniPopes:compiler-typos, r=Nilstrieb
Fix typos in compiler
I ran [`typos -w compiler`](https://github.com/crate-ci/typos) to fix typos in the `compiler` directory.
Refs #110150
Diffstat (limited to 'compiler/rustc_target')
-rw-r--r-- | compiler/rustc_target/src/abi/call/mod.rs | 2 | ||||
-rw-r--r-- | compiler/rustc_target/src/spec/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_target/src/abi/call/mod.rs b/compiler/rustc_target/src/abi/call/mod.rs index a0730fbb650..57011aa8a14 100644 --- a/compiler/rustc_target/src/abi/call/mod.rs +++ b/compiler/rustc_target/src/abi/call/mod.rs @@ -755,7 +755,7 @@ impl FromStr for Conv { "AmdGpuKernel" => Ok(Conv::AmdGpuKernel), "AvrInterrupt" => Ok(Conv::AvrInterrupt), "AvrNonBlockingInterrupt" => Ok(Conv::AvrNonBlockingInterrupt), - _ => Err(format!("'{s}' is not a valid value for entry function call convetion.")), + _ => Err(format!("'{s}' is not a valid value for entry function call convention.")), } } } diff --git a/compiler/rustc_target/src/spec/mod.rs b/compiler/rustc_target/src/spec/mod.rs index 192b2ab0ca2..4e5a821f0f6 100644 --- a/compiler/rustc_target/src/spec/mod.rs +++ b/compiler/rustc_target/src/spec/mod.rs @@ -123,7 +123,7 @@ pub enum Lld { /// target properties, in accordance with the first design goal. /// /// The first component of the flavor is tightly coupled with the compilation target, -/// while the `Cc` and `Lld` flags can vary withing the same target. +/// while the `Cc` and `Lld` flags can vary within the same target. #[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd)] pub enum LinkerFlavor { /// Unix-like linker with GNU extensions (both naked and compiler-wrapped forms). |