]> git.lizzy.rs Git - rust.git/commitdiff
make book match reference
authorAlexis Beingessner <a.beingessner@gmail.com>
Fri, 26 Jun 2015 19:06:05 +0000 (12:06 -0700)
committerAlexis Beingessner <a.beingessner@gmail.com>
Fri, 26 Jun 2015 19:06:05 +0000 (12:06 -0700)
src/doc/trpl/unsafe.md

index fdb9c33a2b0b5d7676c967eb4bf19c324b953f9b..e8f1b829061c295b76927cd7b33a21791cd6998e 100644 (file)
@@ -12,7 +12,7 @@ two contexts. The first one is to mark a function as unsafe:
 
 ```rust
 unsafe fn danger_will_robinson() {
-    // scary stuff 
+    // scary stuff
 }
 ```
 
@@ -68,11 +68,8 @@ Whew! That’s a bunch of stuff. It’s also important to notice all kinds of
 behaviors that are certainly bad, but are expressly _not_ unsafe:
 
 * Deadlocks
-* Reading data from private fields
-* Leaks due to reference count cycles
+* Leaks of memory or other resources
 * Exiting without calling destructors
-* Sending signals
-* Accessing/modifying the file system
 * Integer overflow
 
 Rust cannot prevent all kinds of software problems. Buggy code can and will be