File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -156,12 +156,12 @@ arrangement of safe code can cause undefined behavior. That's a lot to consider!
156
156
157
157
### Unsafe code must accurately document its safety conditions, or it's unsound
158
158
159
- The "safey conditions" for unsafe traits and functions are just the conditions
159
+ The "safety conditions" for unsafe traits and functions are just the conditions
160
160
under which it does not trigger undefined behavior. These conditions aren't
161
161
checked by the compiler, they're checked by the people who write the code
162
162
itself. Therefore, unsafe blocks must be manually checked to verify that the
163
163
code written upholds all of the conditions required to avoid undefined behavior.
164
- Any unsafe code that can trigger undefined behavior _ even when its safey
164
+ Any unsafe code that can trigger undefined behavior _ even when its safety
165
165
conditions are upheld_ is unsound.
166
166
167
167
You can’t perform that action at this time.
0 commit comments