From f8203efc5a15bcfb2707af0b93170cf2b6d870de Mon Sep 17 00:00:00 2001 From: zzwxh <102860856+zzwxh@users.noreply.github.com> Date: Wed, 25 Oct 2023 06:32:37 +0800 Subject: [PATCH] Update what-unsafe-does.md --- src/what-unsafe-does.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/what-unsafe-does.md b/src/what-unsafe-does.md index fce236e..013b0a9 100644 --- a/src/what-unsafe-does.md +++ b/src/what-unsafe-does.md @@ -13,7 +13,7 @@ 与 C 语言不同,Rust 中的“未定义行为”的范围相当有限。核心语言中,你只需要关心防止以下事情: - 解除引用(使用`*`运算符)悬空或不对齐的指针(见下文) -- 破坏[指名针别规则][pointer aliasing rules] +- 破坏[指针别名规则][pointer aliasing rules] - 调用一个 ABI 错误的函数,或者从一个 unwind ABI 错误的函数中 unwinding - 引起[数据竞争][race] - 执行用当前执行线程不支持的[目标特性][target features]编译的代码