Skip to content

Commit

Permalink
Merge pull request #98 from rust-lang-nursery/guide-extern-c
Browse files Browse the repository at this point in the history
guide: use "C" in `extern` items
  • Loading branch information
nrc authored Nov 13, 2017
2 parents 25c7856 + 4164de4 commit 35bff4c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions guide/items.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,3 +256,9 @@ where
body
}
```

### 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 35bff4c

Please sign in to comment.