about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-02-06 22:31:33 -0800
committerbors <bors@rust-lang.org>2014-02-06 22:31:33 -0800
commit55f53f553a04fa0e491f96891403f40aeeed0665 (patch)
tree165df41c2f3b774f42fc6d9c63210b06a8acbed7
parent396ef9352e5084d794dbad85759899b0b6fea624 (diff)
parentee608cb9359e94395595e3b844fe824fd36130ec (diff)
downloadrust-55f53f553a04fa0e491f96891403f40aeeed0665.tar.gz
rust-55f53f553a04fa0e491f96891403f40aeeed0665.zip
auto merge of #12078 : colemickens/rust/patch-2, r=alexcrichton
-rw-r--r--src/doc/guide-ffi.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/guide-ffi.md b/src/doc/guide-ffi.md
index c892c06902a..e19e9978e17 100644
--- a/src/doc/guide-ffi.md
+++ b/src/doc/guide-ffi.md
@@ -520,7 +520,7 @@ conventions. Rust provides a way to tell the compiler which convention to use:
 
 ~~~~
 #[cfg(target_os = "win32", target_arch = "x86")]
-#[link_name = "kernel32"]
+#[link(name = "kernel32")]
 extern "stdcall" {
     fn SetEnvironmentVariableA(n: *u8, v: *u8) -> std::libc::c_int;
 }