Skip to content
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

Refocus unsafe code chapter on unsafe itself. #24640

Merged
merged 1 commit into from
Apr 22, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/doc/trpl/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
* [Deref coercions](deref-coercions.md)
* [Macros](macros.md)
* [Raw Pointers](raw-pointers.md)
* [`unsafe`](unsafe.md)
* [Nightly Rust](nightly-rust.md)
* [Compiler Plugins](compiler-plugins.md)
* [Inline Assembly](inline-assembly.md)
Expand Down
4 changes: 2 additions & 2 deletions src/doc/trpl/unsafe-code.md → src/doc/trpl/unsafe.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
% Unsafe Code
% Unsafe

Rust’s main draw is its powerful static guarantees about behavior. But safety
checks are conservative by nature: there are some programs that are actually
Expand Down Expand Up @@ -76,7 +76,7 @@ behaviors that are certainly bad, but are expressly _not_ unsafe:
* Integer overflow

Rust cannot prevent all kinds of software problems. Buggy code can and will be
written in Rust. These things arne’t great, but they don’t qualify as `unsafe`
written in Rust. These things aren’t great, but they don’t qualify as `unsafe`
specifically.

# Unsafe Superpowers
Expand Down
2 changes: 1 addition & 1 deletion src/librustc/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ fn main() {
unsafe { f(); }
}

See also http://doc.rust-lang.org/book/unsafe-code.html
See also http://doc.rust-lang.org/book/unsafe.html
"##,

E0152: r##"
Expand Down