Skip to content

Commit

Permalink
guide-unsafe.md: fix wording
Browse files Browse the repository at this point in the history
Following a suggestion by Huon Wilson.
  • Loading branch information
Philipp Gesang committed Aug 12, 2014
1 parent 2c7ef33 commit 061cdec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/guide-unsafe.md
Expand Up @@ -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
Expand Down

5 comments on commit 061cdec

@bors
Copy link
Contributor

@bors bors commented on 061cdec Aug 13, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from brson
at phi-gamma@061cdec

@bors
Copy link
Contributor

@bors bors commented on 061cdec Aug 13, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging phi-gamma/rust/doc-fixes = 061cdec into auto

@bors
Copy link
Contributor

@bors bors commented on 061cdec Aug 13, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

phi-gamma/rust/doc-fixes = 061cdec merged ok, testing candidate = 0f09f51

@bors
Copy link
Contributor

@bors bors commented on 061cdec Aug 13, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 0f09f51

Please sign in to comment.