Skip to content

Commit d2b6640

Browse files
authored
Update list of unsafe things
* Inline assembly is not stable and is thus no longer mentioned. * Mention static mutable variables and unsafe traits instead.
1 parent 66e3b4c commit d2b6640

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/unsafe.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ put in place by the compiler; specifically, there are four primary things that
77
unsafe blocks are used for:
88

99
* dereferencing raw pointers
10-
* calling a function over FFI (but this is covered in [a previous
11-
chapter](std_misc/ffi.html) of the book)
12-
* calling functions which are `unsafe`
13-
* inline assembly
10+
* calling functions or methods which are `unsafe` (including calling a function
11+
over FFI, see [a previous chapter](std_misc/ffi.html) of the book)
12+
* accessing or modifying static mutable variables
13+
* implementing unsafe traits
1414

1515
### Raw Pointers
1616
Raw pointers `*` and references `&T` function similarly, but references are

0 commit comments

Comments
 (0)