Skip to content

Commit 9bf9f64

Browse files
committed
Clarify what Behavior Considered Undefined means.
Fixes rust-lang#19 Thanks to @durka for providing the initial sentence.
1 parent 669d225 commit 9bf9f64

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/behavior-considered-undefined.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
## Behavior considered undefined
22

3-
The following is a list of behavior which is forbidden in all Rust code,
4-
including within `unsafe` blocks and `unsafe` functions. Type checking provides
5-
the guarantee that these issues are never caused by safe code.
3+
Rust code, including within `unsafe` blocks and `unsafe` functions is incorrect
4+
if it exhibits any of the behaviors in the following list. It is the
5+
programmer's responsibility when writing `unsafe` code that it is not possible
6+
to let `safe` code exhibit these behaviors.
67

78
* Data races.
89
* Dereferencing a null or dangling raw pointer.

0 commit comments

Comments
 (0)