Skip to content

Commit b9ccb09

Browse files
authored
Merge pull request #1327 from RalfJung/place-expr
fix place expression context example
2 parents 0f29748 + 8d49ecf commit b9ccb09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/behavior-considered-undefined.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ code.
2525
* Data races.
2626
* Evaluating a [dereference expression] (`*expr`) on a raw pointer that is
2727
[dangling] or unaligned, even in [place expression context]
28-
(e.g. `addr_of!(&*expr)`).
28+
(e.g. `addr_of!(*expr)`).
2929
* Breaking the [pointer aliasing rules]. `Box<T>`, `&mut T` and `&T` follow
3030
LLVM’s scoped [noalias] model, except if the `&T` contains an
3131
[`UnsafeCell<U>`]. References and boxes must not be [dangling] while they are

0 commit comments

Comments
 (0)