summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorTicki <@>2015-07-21 21:36:29 +0200
committerTicki <@>2015-07-21 21:36:29 +0200
commita5c7b96426cbddc1276ab4439ed2cc4a5689abc2 (patch)
treea36d8847e71cd32835dbd1730515e3d46d97440d /src
parent5dbddfb210d511af4b1b673c11053074505f11d2 (diff)
downloadrust-a5c7b96426cbddc1276ab4439ed2cc4a5689abc2.tar.gz
rust-a5c7b96426cbddc1276ab4439ed2cc4a5689abc2.zip
Add info about usage of 'unsafe' keyword in bindings to foreign interfaces.
Diffstat (limited to 'src')
-rw-r--r--src/doc/trpl/unsafe.md10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/doc/trpl/unsafe.md b/src/doc/trpl/unsafe.md
index 80b0c87473f..897795e9153 100644
--- a/src/doc/trpl/unsafe.md
+++ b/src/doc/trpl/unsafe.md
@@ -100,10 +100,14 @@ that you normally can not do. Just three. Here they are:
 
 That’s it. It’s important that `unsafe` does not, for example, ‘turn off the
 borrow checker’. Adding `unsafe` to some random Rust code doesn’t change its
-semantics, it won’t just start accepting anything.
+semantics, it won’t just start accepting anything. But it will let you write
+things that _do_ break some of the rules.
 
-But it will let you write things that _do_ break some of the rules. Let’s go
-over these three abilities in order.
+You will also encounter the 'unsafe' keyword when writing bindings to foreign
+(non-Rust) interfaces. You're encouraged to write a safe, native Rust interface
+around the methods provided by the library.
+
+Let’s go over the basic three abilities listed, in order.
 
 ## Access or update a `static mut`