Skip to content

Commit

Permalink
fix comment grammar
Browse files Browse the repository at this point in the history
Co-authored-by: Ralf Jung <post@ralfj.de>
  • Loading branch information
beepster4096 and RalfJung authored Jan 7, 2024
1 parent 1febf58 commit 0de9144
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/rustc_target/src/spec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2403,9 +2403,9 @@ impl Target {
match abi {
Abi::C { .. } => self.default_adjusted_cabi.unwrap_or(abi),

// On Windows, `extern "system"` behaves like msvc's `__stdcall`
// `__stdcall` only applies on x86 and on non-variadic functions
// see https://learn.microsoft.com/en-us/cpp/cpp/stdcall?view=msvc-170
// On Windows, `extern "system"` behaves like msvc's `__stdcall`.
// `__stdcall` only applies on x86 and on non-variadic functions:
// https://learn.microsoft.com/en-us/cpp/cpp/stdcall?view=msvc-170
Abi::System { unwind } if self.is_like_windows && self.arch == "x86" && !c_variadic => {
Abi::Stdcall { unwind }
}
Expand Down

0 comments on commit 0de9144

Please sign in to comment.