We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e5185d commit 1758585Copy full SHA for 1758585
doc/tutorial-ffi.md
@@ -303,7 +303,7 @@ conventions. Rust provides a way to tell the compiler which convention to use:
303
#[cfg(target_os = "win32", target_arch = "x86")]
304
#[link_name = "kernel32"]
305
extern "stdcall" {
306
- fn SetEnvironmentVariableA(n: *u8, v: *u8) -> int;
+ fn SetEnvironmentVariableA(n: *u8, v: *u8) -> std::libc::c_int;
307
}
308
~~~~
309
0 commit comments