diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2024-07-18 12:44:59 -0300 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2024-08-26 14:55:56 -0300 |
| commit | ebf46f760774f63a8025f1ead3cf359e88aaa103 (patch) | |
| tree | f193ecd67f78f2f9501e7f1d8311a3425e890a85 | |
| parent | 80eb5a8e910e5185d47cdefe3732d839c78a5e7e (diff) | |
| download | rust-ebf46f760774f63a8025f1ead3cf359e88aaa103.tar.gz rust-ebf46f760774f63a8025f1ead3cf359e88aaa103.zip | |
Add unsafe to extern blocks in style guide
| -rw-r--r-- | src/doc/style-guide/src/items.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/style-guide/src/items.md b/src/doc/style-guide/src/items.md index 8e1b1d80fb6..5ea8b6cd542 100644 --- a/src/doc/style-guide/src/items.md +++ b/src/doc/style-guide/src/items.md @@ -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 ...` and `unsafe extern { ... }`. ## Imports (`use` statements) |
