Skip to content

Commit ee8efd7

Browse files
committed
fix: typos
Signed-off-by: guoguangwu <[email protected]>
1 parent d3555f3 commit ee8efd7

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_target/src/spec

1 file changed

+3
-3
lines changed

compiler/rustc_target/src/spec/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ impl ToJson for LldFlavor {
211211

212212
impl LinkerFlavor {
213213
/// At this point the target's reference linker flavor doesn't yet exist and we need to infer
214-
/// it. The inference always succeds and gives some result, and we don't report any flavor
214+
/// it. The inference always succeeds and gives some result, and we don't report any flavor
215215
/// incompatibility errors for json target specs. The CLI flavor is used as the main source
216216
/// of truth, other flags are used in case of ambiguities.
217217
fn from_cli_json(cli: LinkerFlavorCli, lld_flavor: LldFlavor, is_gnu: bool) -> LinkerFlavor {
@@ -581,7 +581,7 @@ impl LinkSelfContainedDefault {
581581
self == LinkSelfContainedDefault::False
582582
}
583583

584-
/// Returns whether the target spec explictly requests self-contained linking, i.e. not via
584+
/// Returns whether the target spec explicitly requests self-contained linking, i.e. not via
585585
/// inference.
586586
pub fn is_linker_enabled(self) -> bool {
587587
match self {
@@ -2090,7 +2090,7 @@ pub struct TargetOptions {
20902090
/// If `None`, then `CFG_DEFAULT_CODEGEN_BACKEND` environmental variable captured when
20912091
/// compiling `rustc` will be used instead (or llvm if it is not set).
20922092
///
2093-
/// N.B. when *using* the compiler, backend can always be overriden with `-Zcodegen-backend`.
2093+
/// N.B. when *using* the compiler, backend can always be overridden with `-Zcodegen-backend`.
20942094
pub default_codegen_backend: Option<StaticCow<str>>,
20952095

20962096
/// Whether to generate trap instructions in places where optimization would

0 commit comments

Comments
 (0)