diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-05-09 14:14:42 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-05-12 16:33:15 -0700 |
| commit | 06ef889cdc77db862d526bf6a607ecdf3ee80beb (patch) | |
| tree | 12ef3b970735baece127e674d7feb82bd6a5d9da /doc/tutorial-ffi.md | |
| parent | 830b945a9db072b68970b6f83dfafc1aaff8f837 (diff) | |
libsyntax: Remove `extern mod foo { ... }` from the language.
Diffstat (limited to 'doc/tutorial-ffi.md')
| -rw-r--r-- | doc/tutorial-ffi.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/tutorial-ffi.md b/doc/tutorial-ffi.md index d8367fbdc2d..b2c2a8824ee 100644 --- a/doc/tutorial-ffi.md +++ b/doc/tutorial-ffi.md @@ -237,7 +237,8 @@ convention to use: ~~~~ #[cfg(target_os = "win32")] #[abi = "stdcall"] -extern mod kernel32 { +#[link_name = "kernel32"] +extern { fn SetEnvironmentVariableA(n: *u8, v: *u8) -> int; } ~~~~ |
