From e1588d5375da15ba697054feb976cb3b214caa25 Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Mon, 18 Sep 2017 19:50:42 +1200 Subject: [PATCH] guide: use "C" in `extern` items --- guide/items.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/guide/items.md b/guide/items.md index 15c80bd..25ef268 100644 --- a/guide/items.md +++ b/guide/items.md @@ -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" { ... }.