Skip to content

Commit 2144ac3

Browse files
Update text/0000-unsafe-extern-blocks.md
Co-authored-by: Waffle Maybe <[email protected]>
1 parent 7754241 commit 2144ac3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/0000-unsafe-extern-blocks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ An extern function is declared with a `;` instead of a function body (similar to
3333
An extern static value is also declared with a `;` instead of an expression (similar to an associated const of a trait).
3434
In both cases, the actual function body or value is provided by whatever external source (which is probably not even written in Rust).
3535

36-
When an `unsafe extern` block is used, all declarations within that `extern` block *should* have the `unsafe` or `safe` keywords as part of their signature.
36+
When an `unsafe extern` block is used, all declarations within that `extern` block *must* have the `unsafe` or `safe` keywords as part of their signature.
3737
If one of the two keywords is not explicitly provided, the declaration is assumed to be `unsafe`, and also a warning is generated.
3838
The `safe` keyword is a contextual keyword, it is currently only used within `extern` blocks.
3939

0 commit comments

Comments
 (0)