From 9602400789ef2f3842a074fe0d3f08406cf12e37 Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Thu, 5 Feb 2026 11:39:43 +0200 Subject: [PATCH 1/2] one cannot index into any type --- src/glossary.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glossary.rst b/src/glossary.rst index 8fc1d38e..e7293d10 100644 --- a/src/glossary.rst +++ b/src/glossary.rst @@ -3220,7 +3220,7 @@ index expression :dp:`fls_1f7e9q8n431n` An :dt:`index expression` is an :t:`expression` that indexes into a :t:`value` -of a :t:`type`. +of an :t:`indexable type`. :dp:`fls_xm2er7vuo07g` See :s:`IndexExpression`. From ece38b823f82f53826932c9fccd5e1f2e39278e5 Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Thu, 5 Feb 2026 11:40:05 +0200 Subject: [PATCH 2/2] unwrap --- src/expressions.rst | 3 +-- src/glossary.rst | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/expressions.rst b/src/expressions.rst index 7db73d03..848fb111 100644 --- a/src/expressions.rst +++ b/src/expressions.rst @@ -2974,8 +2974,7 @@ An :t:`indexable type` is a :t:`type` that implements the :std:`core::ops::Index` :t:`trait`. :dp:`fls_42ijvuqqqlvh` -An :t:`index expression` is an :t:`expression` that indexes into a :t:`value` -of an :t:`indexable type`. +An :t:`index expression` is an :t:`expression` that indexes into a :t:`value` of an :t:`indexable type`. :dp:`fls_pc0c22asgzvw` An :t:`indexed operand` is an :t:`operand` which indicates the :t:`value` diff --git a/src/glossary.rst b/src/glossary.rst index e7293d10..d9fbe88a 100644 --- a/src/glossary.rst +++ b/src/glossary.rst @@ -3219,8 +3219,7 @@ index expression ^^^^^^^^^^^^^^^^ :dp:`fls_1f7e9q8n431n` -An :dt:`index expression` is an :t:`expression` that indexes into a :t:`value` -of an :t:`indexable type`. +An :dt:`index expression` is an :t:`expression` that indexes into a :t:`value` of an :t:`indexable type`. :dp:`fls_xm2er7vuo07g` See :s:`IndexExpression`.