Skip to content

Commit 4164de4

Browse files
committed
guide: use "C" in extern items
1 parent 25c7856 commit 4164de4

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)