Skip to content

Commit 26cbd69

Browse files
committed
---
yaml --- r: 234943 b: refs/heads/stable c: 9001da6 h: refs/heads/master i: 234941: 4028f20 234939: b1299b7 234935: 740ae63 234927: 959ecaa 234911: bef17ae 234879: 1b061c5 v: v3
1 parent b06846d commit 26cbd69

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
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: c98e46c7cabd44a306ac52c95d961bcebd899b0f
32+
refs/heads/stable: 9001da658ae020199b479f416b21eb71d0d48492
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/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)