Skip to content

Commit b6808de

Browse files
authored
Fix typo with respect to dangling pointer (#319)
1 parent 2d66852 commit b6808de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/what-unsafe-does.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ A reference/pointer is "dangling" if it is null or not all of the bytes it
4848
points to are part of the same allocation (so in particular they all have to be
4949
part of *some* allocation). The span of bytes it points to is determined by the
5050
pointer value and the size of the pointee type. As a consequence, if the span is
51-
empty, "dangling" is the same as "non-null". Note that slices and strings point
51+
empty, "dangling" is the same as "null". Note that slices and strings point
5252
to their entire range, so it's important that the length metadata is never too
5353
large (in particular, allocations and therefore slices and strings cannot be
5454
bigger than `isize::MAX` bytes). If for some reason this is too cumbersome,

0 commit comments

Comments
 (0)