guide-unsafe.md: fix wording
Following a suggestion by Huon Wilson.
This commit is contained in:
parent
2c7ef330fc
commit
061cdec5df
@ -137,7 +137,7 @@ explicitly with, respectively, `value as *const T` and `value as *mut T`).
|
||||
|
||||
Going the opposite direction, from `*const` to a reference `&`, is not
|
||||
safe. A `&T` is always valid, and so, at a minimum, the raw pointer
|
||||
`*const T` has to be a pointer to a valid instance of type `T`. Furthermore,
|
||||
`*const T` has to point to a valid instance of type `T`. Furthermore,
|
||||
the resulting pointer must satisfy the aliasing and mutability laws of
|
||||
references. The compiler assumes these properties are true for any
|
||||
references, no matter how they are created, and so any conversion from
|
||||
|
Loading…
x
Reference in New Issue
Block a user