From 5af8895ec347e2ea4d6ec71e3e6680ec3d9c32f5 Mon Sep 17 00:00:00 2001 From: Joseph Lyons Date: Mon, 17 Jun 2019 00:30:21 -0400 Subject: [PATCH] Added a bullet point to have list of things unsafe allows for match up with the nomicon https://doc.rust-lang.org/nomicon/what-unsafe-does.html --- src/ch19-01-unsafe-rust.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ch19-01-unsafe-rust.md b/src/ch19-01-unsafe-rust.md index 8605ede6a..8c32b3663 100644 --- a/src/ch19-01-unsafe-rust.md +++ b/src/ch19-01-unsafe-rust.md @@ -33,6 +33,7 @@ the ability to: * Call an unsafe function or method * Access or modify a mutable static variable * Implement an unsafe trait +* Access fields of `union`s It’s important to understand that `unsafe` doesn’t turn off the borrow checker or disable any other of Rust’s safety checks: if you use a reference in unsafe