Skip to content

Commit

Permalink
Fix name of trait for array indexing.
Browse files Browse the repository at this point in the history
  • Loading branch information
tossbyte committed Jun 28, 2020
1 parent 04d5d5d commit 8c45228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ The following expressions can be mutable place expression contexts:
This is an exception to the requirement of the next rule.
* Dereferences of a type that implements `DerefMut`, this then requires that
the value being dereferenced is evaluated is a mutable place expression context.
* [Array indexing] of a type that implements `DerefMut`, this
* [Array indexing] of a type that implements `IndexMut`, this
then evaluates the value being indexed, but not the index, in mutable place
expression context.

Expand Down

0 comments on commit 8c45228

Please sign in to comment.