Skip to content

Commit 35bff4c

Browse files
authored
Merge pull request #98 from rust-lang-nursery/guide-extern-c
guide: use "C" in `extern` items
2 parents 25c7856 + 4164de4 commit 35bff4c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

guide/items.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,3 +256,9 @@ where
256256
body
257257
}
258258
```
259+
260+
### extern items
261+
262+
When writing extern items (such as `extern "C" fn`), always be explicit about
263+
the ABI. For example, write `extern "C" fn foo ...`, not `extern fn foo ...`, or
264+
`extern "C" { ... }.

0 commit comments

Comments
 (0)