about summary refs log tree commit diff
diff options
context:
space:
mode:
-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;
 }