Skip to content

Commit 8c31315

Browse files
authored
Merge pull request #840 from tossbyte/fix-trait-name
Fix name of trait for array indexing.
2 parents 04d5d5d + 8c45228 commit 8c31315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expressions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ The following expressions can be mutable place expression contexts:
155155
This is an exception to the requirement of the next rule.
156156
* Dereferences of a type that implements `DerefMut`, this then requires that
157157
the value being dereferenced is evaluated is a mutable place expression context.
158-
* [Array indexing] of a type that implements `DerefMut`, this
158+
* [Array indexing] of a type that implements `IndexMut`, this
159159
then evaluates the value being indexed, but not the index, in mutable place
160160
expression context.
161161

0 commit comments

Comments
 (0)