Skip to content

Commit 423f6b9

Browse files
RalfJungGankra
authored andcommitted
list more ptr offset computations
1 parent 12b34a6 commit 423f6b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/what-unsafe-does.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Unlike C, Undefined Behavior is pretty limited in scope in Rust. All the core
1717
language cares about is preventing the following things:
1818

1919
* Dereferencing null, dangling, or unaligned references or raw pointers
20-
* Performing out-of-bounds arithmetic for the computation of a struct/tuple
21-
field address
20+
* Performing out-of-bounds arithmetic for the computation of an
21+
`enum`/`struct`/array/slice/tuple field address
2222
* Reading [uninitialized memory][]
2323
* Breaking the [pointer aliasing rules][]
2424
* Producing/obtaining invalid primitive values:

0 commit comments

Comments
 (0)