Skip to content

Commit

Permalink
Clarify the Safe vs. Unsafe Rust relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Jul 27, 2021
1 parent f51734e commit e43b811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/safe-unsafe-meaning.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ of Safe Rust, the *soundness property*:
The design of the safe/unsafe split means that there is an asymmetric trust
relationship between Safe and Unsafe Rust. Safe Rust inherently has to
trust that any Unsafe Rust it touches has been written correctly.
On the other hand, Unsafe Rust has to be very careful about trusting Safe Rust.
On the other hand, Unsafe Rust cannot trust Safe Rust without care.

As an example, Rust has the [`PartialOrd`] and [`Ord`] traits to differentiate
between types which can "just" be compared, and those that provide a "total"
Expand Down

0 comments on commit e43b811

Please sign in to comment.