Skip to content

Commit 5522e3e

Browse files
committed
dont use stdcall on x86_64 where it is not a valid ABI
1 parent df36291 commit 5522e3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/items/functions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ called from other programming languages like C:
194194
// Declares a function with the "C" ABI
195195
extern "C" fn new_i32() -> i32 { 0 }
196196

197-
// Declares a function with the "stdcall" ABI
197+
// Declares a function with the "vectorcall" ABI
198198
# #[cfg(target_arch = "x86_64")]
199-
extern "stdcall" fn new_i32_stdcall() -> i32 { 0 }
199+
extern "vectorcall" fn new_i32_vectorcall() -> i32 { 0 }
200200
```
201201

202202
Just as with [external block], when the `extern` keyword is used and the `"ABI"`

0 commit comments

Comments
 (0)