diff options
| author | Alexis Beingessner <a.beingessner@gmail.com> | 2015-06-26 12:06:05 -0700 |
|---|---|---|
| committer | Alexis Beingessner <a.beingessner@gmail.com> | 2015-06-26 12:06:05 -0700 |
| commit | 9001da658ae020199b479f416b21eb71d0d48492 (patch) | |
| tree | 4f6c85ab919bf56daf673ab038d33f8e081ed60f | |
| parent | c98e46c7cabd44a306ac52c95d961bcebd899b0f (diff) | |
| download | rust-9001da658ae020199b479f416b21eb71d0d48492.tar.gz rust-9001da658ae020199b479f416b21eb71d0d48492.zip | |
make book match reference
| -rw-r--r-- | src/doc/trpl/unsafe.md | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/doc/trpl/unsafe.md b/src/doc/trpl/unsafe.md index fdb9c33a2b0..e8f1b829061 100644 --- a/src/doc/trpl/unsafe.md +++ b/src/doc/trpl/unsafe.md @@ -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 |
