Skip to content

Commit 26498ab

Browse files
committed
Re-title unsafe extern
1 parent ead205c commit 26498ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posts/2024-10-17-Rust-1.82.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Relaxing this may cause problems where some unsafe blocks are now reported as un
156156

157157
A future version of Rust is expected to generalize this to other expressions which would be safe in this position, not just statics.
158158

159-
### Unsafe extern
159+
### Safe items in `unsafe extern`
160160

161161
Rust code can use functions and statics from foreign code. The type signatures of these foreign items are provided in `extern` blocks. Historically, all items within `extern` blocks have been unsafe to call, but we didn't have to write `unsafe` anywhere on the `extern` block itself.
162162

0 commit comments

Comments
 (0)