mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-03 10:40:15 +08:00
build
This commit is contained in:
@@ -109,7 +109,9 @@ comments: true
|
||||
=== "Rust"
|
||||
|
||||
```rust title="array.rs"
|
||||
|
||||
/* 初始化数组 */
|
||||
let arr: Vec<i32> = vec![0; 5]; // [0, 0, 0, 0, 0]
|
||||
let nums: Vec<i32> = vec![1, 3, 2, 5, 4];
|
||||
```
|
||||
|
||||
## 4.1.1. 数组优点
|
||||
|
||||
Reference in New Issue
Block a user