Merge pull request #572 from kylezhang/main

fixed typo
pull/573/head
KaiserY 3 years ago committed by GitHub
commit 9c3ca2e1c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
[appendix_b]: appendix-02-operators.md

Loading…
Cancel
Save