Skip to content

Commit

Permalink
make book match reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Gankra committed Jun 26, 2015
1 parent c98e46c commit 9001da6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/doc/trpl/unsafe.md
Expand Up @@ -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
}
```

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9001da6

Please sign in to comment.