Skip to content

Commit 17e9160

Browse files
ehusstraviscross
authored andcommitted
Clarify that safe extern items do not require unsafe
This clarifies items.extern.fn-safety that it only applies to unsafe items. `safe` items do not require an unsafe context. I think this was just missed in #1536.
1 parent 9c6bcbd commit 17e9160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/items/external-blocks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Two kinds of item _declarations_ are allowed in external blocks: [functions] and
2929
[statics].
3030

3131
r[items.extern.fn-safety]
32-
Calling functions or accessing statics that are declared in external blocks is only allowed in an `unsafe` context.
32+
Calling unsafe functions or accessing unsafe statics that are declared in external blocks is only allowed in an `unsafe` context.
3333

3434
r[items.extern.namespace]
3535
The external block defines its functions and statics in the [value namespace] of the module or block where it is located.

0 commit comments

Comments
 (0)