-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Re-word UB in unsafe guide #26853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-word UB in unsafe guide #26853
Conversation
r? @huonw (rust_highfive has picked a reviewer for you, use r? to override) |
@@ -33,9 +33,21 @@ in the sections marked `unsafe`. | |||
|
|||
# What does ‘safe’ mean? | |||
|
|||
Safe, in the context of Rust, means “doesn’t do anything unsafe.” Easy! | |||
Safe, in the context of Rust, means ‘doesn’t do anything unsafe’. It’s also | |||
important to notice all kinds of behaviors that are certainly bad, but are |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/all kinds/there are kinds/ ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated, let me know what you think :)
This incorrectly implied that doing things is fine in unsafe code Fixes rust-lang#26346
@bors r+ Thanks! |
📌 Commit bc28e64 has been approved by |
@bors: rollup |
This incorrectly implied that doing things is fine in unsafe code Fixes rust-lang#26346
This incorrectly implied that doing things is fine in unsafe code
Fixes #26346