From 17fe681cc9ed2e7ab1523c2245a4fac60bf49aae Mon Sep 17 00:00:00 2001 From: Chris Denton Date: Thu, 12 Jun 2025 20:56:31 +0000 Subject: [PATCH] Use extern "system" instead of "stdcall" in example `stdcall` is only correct for 32-bit Windows and may be a hard error on other platforms in the future. Whereas `system` is correct for all Windows targets. --- src/items/external-blocks.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/items/external-blocks.md b/src/items/external-blocks.md index 3bed8aaf2..f487bac94 100644 --- a/src/items/external-blocks.md +++ b/src/items/external-blocks.md @@ -103,9 +103,8 @@ standard C ABI on the specific platform. Other ABIs may be specified using an `abi` string, as shown here: ```rust -# #[cfg(any(windows, target_arch = "x86"))] // Interface to the Windows API -unsafe extern "stdcall" { } +unsafe extern "system" { } ``` r[items.extern.abi.standard]