Skip to content

Commit

Permalink
doc: Fix example on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
klutzy committed Nov 14, 2013
1 parent 3e5185d commit 1758585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/tutorial-ffi.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ conventions. Rust provides a way to tell the compiler which convention to use:
#[cfg(target_os = "win32", target_arch = "x86")]
#[link_name = "kernel32"]
extern "stdcall" {
fn SetEnvironmentVariableA(n: *u8, v: *u8) -> int;
fn SetEnvironmentVariableA(n: *u8, v: *u8) -> std::libc::c_int;
}
~~~~

Expand Down

0 comments on commit 1758585

Please sign in to comment.