From f5045a21471faa5adc3408b33adfe11a945b6e8e Mon Sep 17 00:00:00 2001 From: kyle Date: Fri, 7 Jan 2022 09:33:27 +0800 Subject: [PATCH] fixed typo fixed typo --- src/ch03-02-data-types.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ch03-02-data-types.md b/src/ch03-02-data-types.md index 3d49616..50515d3 100644 --- a/src/ch03-02-data-types.md +++ b/src/ch03-02-data-types.md @@ -246,7 +246,7 @@ let a: [i32; 5] = [1, 2, 3, 4, 5]; 这里,`i32` 是每个元素的类型。分号之后,数字 `5` 表明该数组包含五个元素。 -你还可以通过在放括号中指定初始值加分号再加元素个数的方式来创建一个每个元素都为相同值的数组: +你还可以通过在方括号中指定初始值加分号再加元素个数的方式来创建一个每个元素都为相同值的数组: ```rust let a = [3; 5]; @@ -324,4 +324,4 @@ ch02-00-guessing-game-tutorial.html#comparing-the-guess-to-the-secret-number [vectors]: ch08-01-vectors.html [unrecoverable-errors-with-panic]: ch09-01-unrecoverable-errors-with-panic.html [wrapping]: https://doc.rust-lang.org/std/num/struct.Wrapping.html -[appendix_b]: appendix-02-operators.md \ No newline at end of file +[appendix_b]: appendix-02-operators.md