Skip to content

Commit e019d90

Browse files
committed
---
yaml --- r: 219630 b: refs/heads/snap-stage3 c: 9001da6 h: refs/heads/master v: v3
1 parent b219c0c commit e019d90

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: c044791d80ea0dc5c4b57b6030a67b69f8510239
3-
refs/heads/snap-stage3: c98e46c7cabd44a306ac52c95d961bcebd899b0f
3+
refs/heads/snap-stage3: 9001da658ae020199b479f416b21eb71d0d48492
44
refs/heads/try: b53c0f93eedcdedd4fd89bccc5a3a09d1c5cd23e
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/snap-stage3/src/doc/trpl/unsafe.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ two contexts. The first one is to mark a function as unsafe:
1212

1313
```rust
1414
unsafe fn danger_will_robinson() {
15-
// scary stuff
15+
// scary stuff
1616
}
1717
```
1818

@@ -68,11 +68,8 @@ Whew! That’s a bunch of stuff. It’s also important to notice all kinds of
6868
behaviors that are certainly bad, but are expressly _not_ unsafe:
6969

7070
* Deadlocks
71-
* Reading data from private fields
72-
* Leaks due to reference count cycles
71+
* Leaks of memory or other resources
7372
* Exiting without calling destructors
74-
* Sending signals
75-
* Accessing/modifying the file system
7673
* Integer overflow
7774

7875
Rust cannot prevent all kinds of software problems. Buggy code can and will be

0 commit comments

Comments
 (0)