From 59336721bd48a4eb816f4c4cf27963d76dc2e86c Mon Sep 17 00:00:00 2001 From: spuradage Date: Wed, 22 Oct 2025 15:30:57 +0800 Subject: [PATCH] chore: minor improvement for docs Signed-off-by: spuradage --- src/flags.rs | 2 +- src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/flags.rs b/src/flags.rs index b71dd82f8..67ad84741 100644 --- a/src/flags.rs +++ b/src/flags.rs @@ -166,7 +166,7 @@ impl<'this> RustcCodegenFlags<'this> { self.branch_protection = flag_not_empty(value)?; } // https://doc.rust-lang.org/beta/unstable-book/compiler-flags/dwarf-version.html - // FIXME: Drop the -Z variant and update the doc link once the option is stablized + // FIXME: Drop the -Z variant and update the doc link once the option is stabilized "-Zdwarf-version" | "-Cdwarf-version" => { self.dwarf_version = flag_not_empty_generic(flag, value.and_then(arg_to_u32))?; } diff --git a/src/lib.rs b/src/lib.rs index 865eb31fb..60090f086 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1319,7 +1319,7 @@ impl Build { /// always run on every compilation if no rerun cargo metadata is emitted. /// /// NOTE that cc does not emit metadata to detect changes for `PATH`, since it could - /// be changed every comilation yet does not affect the result of compilation + /// be changed every compilation yet does not affect the result of compilation /// (i.e. rust-analyzer adds temporary directory to `PATH`). /// /// cc in general, has no way detecting changes to compiler, as there are so many ways to @@ -1805,7 +1805,7 @@ impl Build { is_arm, }, ); - // armasm and armasm64 don't requrie -c option + // armasm and armasm64 don't require -c option if !is_assembler_msvc || !is_arm { cmd.arg("-c"); }