Skip to content

Commit 8d49ecf

Browse files
committed
fix place expression context example
1 parent 0f29748 commit 8d49ecf

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)