Skip to content

Commit 1758585

Browse files
committedNov 14, 2013
doc: Fix example on Windows
1 parent 3e5185d commit 1758585

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎doc/tutorial-ffi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ conventions. Rust provides a way to tell the compiler which convention to use:
303303
#[cfg(target_os = "win32", target_arch = "x86")]
304304
#[link_name = "kernel32"]
305305
extern "stdcall" {
306-
fn SetEnvironmentVariableA(n: *u8, v: *u8) -> int;
306+
fn SetEnvironmentVariableA(n: *u8, v: *u8) -> std::libc::c_int;
307307
}
308308
~~~~
309309

5 commit comments

Comments
 (5)

bors commented on Nov 14, 2013

@bors
Collaborator

saw approval from alexcrichton
at klutzy@1758585

bors commented on Nov 14, 2013

@bors
Collaborator

merging klutzy/rust/cleanup-xfail = 1758585 into auto

bors commented on Nov 14, 2013

@bors
Collaborator

klutzy/rust/cleanup-xfail = 1758585 merged ok, testing candidate = 51f2e7e

bors commented on Nov 14, 2013

@bors
Collaborator

fast-forwarding master to auto = 51f2e7e

Please sign in to comment.