Skip to content

Commit 95995e5

Browse files
committed
no excuse
1 parent 1ef61c3 commit 95995e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/behavior-considered-undefined.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
Rust code is incorrect if it exhibits any of the behaviors in the following
44
list. This includes code within `unsafe` blocks and `unsafe` functions.
5-
`unsafe` is not an excuse to cause undefined behavior.
5+
`unsafe` only means that avoiding undefined behavior is on the programmer; it
6+
does not change anything about the fact that Rust programs must never cause
7+
undefined behavior.
68

79
It is the programmer's responsibility when writing `unsafe` code to ensure that it is not
810
possible to let `safe` code exhibit these behaviors. `unsafe` code that

0 commit comments

Comments
 (0)