Skip to content

Commit 03dc507

Browse files
Fix mutable expressions that can be dereferenced
1 parent e522d9b commit 03dc507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expressions/operator-expr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ let a = & & & & mut 10;
8686
8787
The `*` (dereference) operator is also a unary prefix operator. When applied to
8888
a [pointer](../types/pointer.md) it denotes the pointed-to location. If
89-
the expression is of type `&mut T` and `*mut T`, and is either a local
89+
the expression is of type `&mut T` or `*mut T`, and is either a local
9090
variable, a (nested) field of a local variable or is a mutable [place
9191
expression], then the resulting memory location can be assigned to.
9292
Dereferencing a raw pointer requires `unsafe`.

0 commit comments

Comments
 (0)