From ee608cb9359e94395595e3b844fe824fd36130ec Mon Sep 17 00:00:00 2001 From: Cole Mickens Date: Thu, 6 Feb 2014 15:54:25 -0800 Subject: [PATCH] Update link_name=... -> link(name=... --- src/doc/guide-ffi.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }