Skip to content

Commit 17fe681

Browse files
authored
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.
1 parent a24e6e9 commit 17fe681

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/items/external-blocks.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,8 @@ standard C ABI on the specific platform. Other ABIs may be specified using an
103103
`abi` string, as shown here:
104104

105105
```rust
106-
# #[cfg(any(windows, target_arch = "x86"))]
107106
// Interface to the Windows API
108-
unsafe extern "stdcall" { }
107+
unsafe extern "system" { }
109108
```
110109

111110
r[items.extern.abi.standard]

0 commit comments

Comments
 (0)