Update what-unsafe-does.md

pull/457/head
alimf17 3 months ago committed by GitHub
parent 0ebdacadbd
commit 1d0b6c122b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -5,7 +5,7 @@ The only things that are different in Unsafe Rust are that you can:
* Dereference raw pointers * Dereference raw pointers
* Call `unsafe` functions (including C functions, compiler intrinsics, and the raw allocator) * Call `unsafe` functions (including C functions, compiler intrinsics, and the raw allocator)
* Implement `unsafe` traits * Implement `unsafe` traits
* Mutate statics * Access or modify mutable statics
* Access fields of `union`s * Access fields of `union`s
That's it. The reason these operations are relegated to Unsafe is that misusing That's it. The reason these operations are relegated to Unsafe is that misusing

Loading…
Cancel
Save