diff options
| author | Philipp Gesang <phg42.2a@gmail.com> | 2014-08-12 21:30:02 +0200 |
|---|---|---|
| committer | Philipp Gesang <phg42.2a@gmail.com> | 2014-08-12 21:30:02 +0200 |
| commit | 061cdec5dfefc91ce2ad00cef1435ce9b7b1db74 (patch) | |
| tree | 610559b37ccc6f6eb3a5e459b62cc5eb4ea4c85b | |
| parent | 2c7ef330fc9445d9411ecfb68fad6b7f0ce00874 (diff) | |
| download | rust-061cdec5dfefc91ce2ad00cef1435ce9b7b1db74.tar.gz rust-061cdec5dfefc91ce2ad00cef1435ce9b7b1db74.zip | |
guide-unsafe.md: fix wording
Following a suggestion by Huon Wilson.
| -rw-r--r-- | src/doc/guide-unsafe.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/guide-unsafe.md b/src/doc/guide-unsafe.md index 34cec8d980a..2ff63055480 100644 --- a/src/doc/guide-unsafe.md +++ b/src/doc/guide-unsafe.md @@ -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 |
