Skip to content

Commit

Permalink
Add unsafe to extern blocks in style guide
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Aug 15, 2024
1 parent 80eb5a8 commit 70a752d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/style-guide/src/items.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,8 @@ entries, format it across multiple lines as with a type alias.
## extern items

When writing extern items (such as `extern "C" fn`), always specify the ABI.
For example, write `extern "C" fn foo ...`, not `extern fn foo ...`, or
`extern "C" { ... }`.
For example, write `extern "C" fn foo ...` or `unsafe extern "C" { ...}`
and avoid `extern fn foo ...`.

## Imports (`use` statements)

Expand Down

0 comments on commit 70a752d

Please sign in to comment.