Skip to content

Commit

Permalink
Merge pull request #890 from jonasmalacofilho/fix-mut-deferencing
Browse files Browse the repository at this point in the history
Fix mutable expressions that can be dereferenced
  • Loading branch information
ehuss authored Oct 10, 2020
2 parents e522d9b + 03dc507 commit a1333f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expressions/operator-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit a1333f9

Please sign in to comment.