Skip to content

Commit

Permalink
guide: use "C" in extern items
Browse files Browse the repository at this point in the history
  • Loading branch information
nrc committed Sep 18, 2017
1 parent 6c702c4 commit e1588d5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions guide/items.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,10 @@ Use `{}` for the full definition of the macro.
macro_rules! foo {
}
```


### extern items

When writing extern items (such as `extern "C" fn`), always be explicit about
the ABI. For example, write `extern "C" fn foo ...`, not `extern fn foo ...`, or
`extern "C" { ... }.

0 comments on commit e1588d5

Please sign in to comment.