]> git.lizzy.rs Git - rust.git/commitdiff
guide-unsafe.md: fix noun
authorPhilipp Gesang <phg42.2a@gmail.com>
Wed, 6 Aug 2014 19:21:12 +0000 (21:21 +0200)
committerPhilipp Gesang <phg42.2a@gmail.com>
Tue, 12 Aug 2014 05:39:57 +0000 (07:39 +0200)
src/doc/guide-unsafe.md

index 8349c8ebcb6489e72d288c967186b6e9a1722cf8..34cec8d980a3d54834f7e815f67d135b07f3d016 100644 (file)
@@ -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 valid to a valid instance of type `T`. Furthermore,
+`*const T` has to be a pointer 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