From 27c6c704e08007cca4905b871caf99126408d858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=A4=E7=8B=90=E4=B8=80=E5=86=B2?= <43949039+anonymousGiga@users.noreply.github.com> Date: Wed, 31 May 2023 14:00:42 +0800 Subject: [PATCH] Update chapter_3_2.md --- src/chapter_3/chapter_3_2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chapter_3/chapter_3_2.md b/src/chapter_3/chapter_3_2.md index aecbc0d..ce87eb6 100644 --- a/src/chapter_3/chapter_3_2.md +++ b/src/chapter_3/chapter_3_2.md @@ -167,7 +167,7 @@ fn main() { fn main() { let a = [1, 2, 3, 4, 5]; //直接写数组的值 let b: [i32; 5] = [1, 2, 3, 4, 5]; //显示指定数组的类型和长度 - let c: [i32; 5] = [3; 5]; //数组每个元素为同样的值,等价于let a = [5, 5, 5, 5, 5]; + let c: [i32; 5] = [3; 5]; //数组每个元素为同样的值,等价于let a = [3, 3, 3, 3, 3]; } ```