Skip to content

Commit ee608cb

Browse files
committed
Update link_name=... -> link(name=...
1 parent c13a929 commit ee608cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/guide-ffi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ conventions. Rust provides a way to tell the compiler which convention to use:
520520

521521
~~~~
522522
#[cfg(target_os = "win32", target_arch = "x86")]
523-
#[link_name = "kernel32"]
523+
#[link(name = "kernel32")]
524524
extern "stdcall" {
525525
fn SetEnvironmentVariableA(n: *u8, v: *u8) -> std::libc::c_int;
526526
}

0 commit comments

Comments
 (0)