mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
Revise E0133 description.
Tweaks some of the wording so it reads better.
This commit is contained in:
parent
c8b088eb38
commit
aace3675b7
@ -312,8 +312,8 @@ http://doc.rust-lang.org/reference.html#ffi-attributes
|
||||
E0133: r##"
|
||||
Using unsafe functionality, such as dereferencing raw pointers and calling
|
||||
functions via FFI or marked as unsafe, is potentially dangerous and disallowed
|
||||
by safety checks. As such, those safety checks can be temporarily relaxed by
|
||||
wrapping the unsafe instructions inside an `unsafe` block. For instance:
|
||||
by safety checks. These safety checks can be relaxed for a section of the code
|
||||
by wrapping the unsafe instructions with an `unsafe` block. For instance:
|
||||
|
||||
```
|
||||
unsafe fn f() { return; }
|
||||
|
Loading…
Reference in New Issue
Block a user