From 8c4522851452563b715b11d4cd755b36d8e4bca5 Mon Sep 17 00:00:00 2001 From: Jan Parthey <67157278+tossbyte@users.noreply.github.com> Date: Sun, 28 Jun 2020 21:18:18 +0200 Subject: [PATCH] Fix name of trait for array indexing. --- src/expressions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/expressions.md b/src/expressions.md index 122511b44..9cc684b99 100644 --- a/src/expressions.md +++ b/src/expressions.md @@ -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.