Update src/what-unsafe-does.md

Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
pull/162/head
Ralf Jung 5 years ago committed by GitHub
parent 04823fd22b
commit d176807b2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -50,7 +50,7 @@ points to are part of the same allocation (so in particular they all have to be
part of *some* allocation). The span of bytes it points to is determined by the part of *some* allocation). The span of bytes it points to is determined by the
pointer value and the size of the pointee type. As a consequence, if the span is pointer value and the size of the pointee type. As a consequence, if the span is
empty, "dangling" is the same as "non-null". Note that slices point to their empty, "dangling" is the same as "non-null". Note that slices point to their
entire range, so it's very important that the length metadata is never too large entire range, so it's important that the length metadata is never too large
(in particular, allocations and therefore slices cannot be bigger than (in particular, allocations and therefore slices cannot be bigger than
`isize::MAX` bytes). If for some reason this is too cumbersome, consider using `isize::MAX` bytes). If for some reason this is too cumbersome, consider using
raw pointers. raw pointers.

Loading…
Cancel
Save