From 03dc50769738a643be1451a4ff1516fa5fab92bd Mon Sep 17 00:00:00 2001 From: Jonas Malaco Date: Sat, 10 Oct 2020 13:12:35 -0300 Subject: [PATCH] Fix mutable expressions that can be dereferenced --- src/expressions/operator-expr.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/expressions/operator-expr.md b/src/expressions/operator-expr.md index c48eccced..7afe96d2e 100644 --- a/src/expressions/operator-expr.md +++ b/src/expressions/operator-expr.md @@ -86,7 +86,7 @@ let a = & & & & mut 10; The `*` (dereference) operator is also a unary prefix operator. When applied to a [pointer](../types/pointer.md) it denotes the pointed-to location. If -the expression is of type `&mut T` and `*mut T`, and is either a local +the expression is of type `&mut T` or `*mut T`, and is either a local variable, a (nested) field of a local variable or is a mutable [place expression], then the resulting memory location can be assigned to. Dereferencing a raw pointer requires `unsafe`.