From 3314ea6b600d2c729a6f11b56befa47677429c66 Mon Sep 17 00:00:00 2001 From: maple19out Date: Tue, 10 Sep 2024 00:58:58 +0900 Subject: [PATCH] Fix ambiguous comment on primitives > Arrays and Slices --- src/primitives/array.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/primitives/array.md b/src/primitives/array.md index 704a2131c7..e1c303ace4 100644 --- a/src/primitives/array.md +++ b/src/primitives/array.md @@ -63,7 +63,7 @@ fn main() { } } - // Out of bound indexing on array causes compile time error. + // Out of bound indexing on array with constant value causes compile time error. //println!("{}", xs[5]); // Out of bound indexing on slice causes runtime error. //println!("{}", xs[..][5]);