Skip to content

Commit 7fb8e3b

Browse files
authored
Merge pull request #11 from qwandor/patch-1
Fix typo: safey -> safety
2 parents 8019e5a + 608c314 commit 7fb8e3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/undefined_behavior.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,12 @@ arrangement of safe code can cause undefined behavior. That's a lot to consider!
156156

157157
### Unsafe code must accurately document its safety conditions, or it's unsound
158158

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
160160
under which it does not trigger undefined behavior. These conditions aren't
161161
checked by the compiler, they're checked by the people who write the code
162162
itself. Therefore, unsafe blocks must be manually checked to verify that the
163163
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
165165
conditions are upheld_ is unsound.
166166

167167

0 commit comments

Comments
 (0)