From 65c523479abb8024672918444ff839426ff5c3a7 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Tue, 2 Jun 2020 15:44:59 +0200 Subject: [PATCH] Fix sentence mistake in array-expr.md --- src/expressions/array-expr.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/expressions/array-expr.md b/src/expressions/array-expr.md index 4d4f567e1..1b0699890 100644 --- a/src/expressions/array-expr.md +++ b/src/expressions/array-expr.md @@ -16,7 +16,7 @@ brackets. This produces an array containing each of these values in the order they are written. Alternatively there can be exactly two expressions inside the brackets, -separated by a semi-colon. The expression after the `;` must be a have type +separated by a semi-colon. The expression after the `;` must have type `usize` and be a [constant expression], such as a [literal](../tokens.md#literals) or a [constant item](../items/constant-items.md). `[a; b]` creates an array containing `b`