Skip to content

Commit 55f53f5

Browse files
committed
auto merge of #12078 : colemickens/rust/patch-2, r=alexcrichton
2 parents 396ef93 + ee608cb commit 55f53f5

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)