From 0f51082773ac6c51457b020ac2b5dea245c03b5a Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 21 Jul 2019 19:48:02 +0200 Subject: [PATCH] avoid redundant UB --- 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 cc02dc6..259f433 100644 --- a/src/what-unsafe-does.md +++ b/src/what-unsafe-does.md @@ -17,7 +17,7 @@ Unlike C, Undefined Behavior is pretty limited in scope in Rust. All the core language cares about is preventing the following things: * Dereferencing (using the `*` operator on) null, dangling, or unaligned - references or raw pointers + pointers * Reading [uninitialized memory][] * Breaking the [pointer aliasing rules][] * Producing invalid primitive values (either alone or as a field of a compound