File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -61,11 +61,11 @@ code.
61
61
A reference/pointer is "dangling" if it is null or not all of the bytes it
62
62
points to are part of the same allocation (so in particular they all have to be
63
63
part of * some* allocation). The span of bytes it points to is determined by the
64
- pointer value and the size of the pointee type. As a consequence, if the span is
65
- empty, "dangling" is the same as "non-null". Note that slices point to their
66
- entire range, so it is important that the length metadata is never too
67
- large. In particular, allocations and therefore slices cannot be bigger than
68
- ` isize::MAX ` bytes.
64
+ pointer value and the size of the pointee type (using ` size_of_val ` ) . As a
65
+ consequence, if the span is empty, "dangling" is the same as "non-null". Note
66
+ that slices point to their entire range, so it is important that the length
67
+ metadata is never too large. In particular, allocations and therefore slices
68
+ cannot be bigger than ` isize::MAX ` bytes.
69
69
70
70
> ** Note** : Undefined behavior affects the entire program. For example, calling
71
71
> a function in C that exhibits undefined behavior of C means your entire
You can’t perform that action at this time.
0 commit comments