Skip to content

Commit

Permalink
Merge pull request #1327 from RalfJung/place-expr
Browse files Browse the repository at this point in the history
fix place expression context example
  • Loading branch information
ehuss authored Feb 2, 2023
2 parents 0f29748 + 8d49ecf commit b9ccb09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/behavior-considered-undefined.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ code.
* Data races.
* Evaluating a [dereference expression] (`*expr`) on a raw pointer that is
[dangling] or unaligned, even in [place expression context]
(e.g. `addr_of!(&*expr)`).
(e.g. `addr_of!(*expr)`).
* Breaking the [pointer aliasing rules]. `Box<T>`, `&mut T` and `&T` follow
LLVM’s scoped [noalias] model, except if the `&T` contains an
[`UnsafeCell<U>`]. References and boxes must not be [dangling] while they are
Expand Down

0 comments on commit b9ccb09

Please sign in to comment.